142
rated 0 times
[
145]
[
3]
/ answers: 1 / hits: 32291
/ 14 Years ago, sat, december 11, 2010, 12:00:00
I have a textarea with 5 lines. I want to show only one line and on focus it should show remaining 4 lines.
More From » jquery
I have a textarea with 5 lines. I want to show only one line and on focus it should show remaining 4 lines.
You can try something like this:
$(document).ready(function(){
$('#moo').focus(function(){
$(this).attr('rows', '4');
});
});
where moo is your textarea.