| Сообщение от Zhazhah | 
	| Как можно при установке фокуса .focus() в textarea устанавливать курсор в конец текста? | 
	
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script>
$(function() {
	$('textarea').focus().setCursorPosition($('textarea').val().length);
});
new function($) {
  $.fn.setCursorPosition = function(pos) {
    if ($(this).get(0).setSelectionRange) {
      $(this).get(0).setSelectionRange(pos, pos);
    } else if ($(this).get(0).createTextRange) {
      var range = $(this).get(0).createTextRange();
      range.collapse(true);
      range.moveEnd('character', pos);
      range.moveStart('character', pos);
      range.select();
    }
  }
}(jQuery);
</script>
</head>
<body>
<textarea rows="10" cols="40">aaaaaaaaaaaaaaaaaaaaaaaaaaaa</textarea>
</body>
</html>
	
	| Сообщение от Zhazhah | 
	| и как перейти к textarea без якоря | 
	
$('html, body').animate({scrollTop: $('textarea').offset().top}, 500);