I am using asp.net. How to set the scrollbar to move at last line in multiline textbox at client side?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set
ClientIDMode="Static"so you can reference the textarea from jQuery using its ID:And add this script after jQuery script tag:
I was curious about compatibility so I tested it in Chrome, Firefox, Opera and IE9 and it works. 🙂
Here is a jsFiddle example of the solution: http://jsfiddle.net/g9KBB/