January 2013

Archive

How To Get Height Of An Element In jQuery

Tapovan
There is are three methods in JQuery that deals with the height of a element. .height() : it measure the height of the element/container excluding applied padding, margin and border-width. .innerHeight() : it measure the height of the element/container excluding applied margin…

Resize Textarea on 'Enter' pressed

Tapovan
1. Add a textarea to a simple HTML template 2. Now include jQuery CDN or downloaded jquery to your page in head section 3. Add a key press event in document scope. 4. Check if the pressed key is 'Enter'. Also check if control is textarea. (I added event only for Text Area,…
an "open and free" initiative. Powered by Blogger.