background preloader

jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content.

jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content.

jQuery Autosize A small, stand-alone script to automatically adjust textarea height. Demo Released under the MIT License, source on Github (changelog) Download Install via NPM npm install autosize Browser compatibility Usage The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements. autosize(document.querySelectorAll('textarea')); autosize(document.querySelector('textarea')); autosize($('textarea')); Methods Life-cycle Events Trouble shooting / FAQ Setting a min-height or max-height Use CSS to specify a min-height and max-height for the textarea element. The rows attribute can also be used to specify a minimum height. Fixing slow or sluggish performance In Webkit, the default focus style for input and textarea elements includes outline-style: auto, which has a blurred drop-shadow like appearance. Initial height is incorrect Autosize needs to be able to calculate the width of the textarea element when it is assigned. Hey,

jQuery jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.[2] It was released in January 2006 at BarCamp NYC by John Resig. It is currently developed by a team of developers led by Dave Methvin. Used by over 80% of the 10,000 most visited websites,[3] jQuery is the most popular JavaScript library in use today.[4][5] The set of jQuery core features—DOM element selections, traversal and manipulation—enabled by its selector engine (named "Sizzle" from v1.3), created a new "programming style", fusing algorithms and DOM-data-structures; and influenced the architecture of other JavaScript frameworks like YUI v3 and Dojo. Microsoft and Nokia bundle jQuery on their platforms.[7] Microsoft includes it with Visual Studio[8] for use within Microsoft's ASP.NET AJAX framework and ASP.NET MVC Framework while Nokia has integrated it into the Web Run-Time widget development platform.[9] jQuery has also been used in MediaWiki since version 1.16.[10]

jQuery

Related: