Jason94 Jason94 - 1 year ago 78
jQuery Question

How do i get the height of the input?

I'm using jquery to add a plugin to a input field. How to I get the height?


<input type="text" id="age" />

and inside myownplugin i've tried

alert( $(this).height )

without the result.

Answer Source

height is a method: $(this).height();

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download