tags:

views:

309

answers:

3

How can I achieve auto expand textarea through jQuery?

+1  A: 
CD
+1  A: 

I've used the Textarea Expander jQuery plugin before with good results.

richsage
this is all about textarea but what about textbox.is this plugin also work for textbox?
picnic4u
A text box (input text element I presume) isn't multiline. Use a textarea but style it appropriately - rows, columns etc, and then use the auto-grow plugin as above.
richsage
+3  A: 

I have tried lots and this one is great. You can try by pressing and hold enter key in textarea. Compare the effect with the other auto expanding textarea plugin....

edit based on comment

$(function() {
   $('#txtMeetingAgenda').autogrow();
});

note: you should include the needed js files...

Reigel
if my textbox id is txtMeetingAgenda then how can i implement Auto textArea property in jquery
picnic4u
please see edit..
Reigel
here click event is define or not
picnic4u
pls my code is not working pls u send me whole code
picnic4u
this is all about textarea but what about textbox.is this plugin also work for textbox?
picnic4u