If the content of a HTML textbox is longer than the textbox width, part of it is hidden and you need to scroll the textbox to see the end. Is there anyway to scroll it in JS or CSS to the end?
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.
Width
Here’s for an
<input type="text" />and width.And my fiddle is updated to show this.
Here’s my previous response with doing it for the height.
Height
You can use scrollHeight and scrollTop on an element to do this.
Fiddle: http://jsfiddle.net/derekaug/JGqtA/