Why jquery.animate on a textarea make the blinking cursor disapears?
Posted
by Tom S.
on Stack Overflow
See other posts from Stack Overflow
or by Tom S.
Published on 2010-04-15T15:42:39Z
Indexed on
2010/04/15
17:43 UTC
Read the original article
Hit count: 199
Hello everyone.
I have the following code
$(document).ready(function() {
$("#myTextArea").focus(function() {
$("#myTextArea").animate({ "height": "75px"}, "normal");
return false;
});
to expand a textbox when it gets focus. The expand occurs, however the blinking cursor disapears, at least in Firefox!
Edited: The textarea is still focused, and i can type on it.
Why does this happen? Is there a way to show it again?
Thanks in advance
© Stack Overflow or respective owner