I have a page that has a textarea, when the page is loaded, I want to pre-select the textarea(like twitter.com d开发者_JAVA技巧oes), so the user does not have to click on it. Do you know how to do that?
Previously thanks!
Rodrigo Alves Vieira.
$(document).ready(function() {
$('#text-area-id').focus();
});
check here: http://jsfiddle.net/jxrS7/
精彩评论