• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 51
  • Last Modified:

Cursor Position in <textarea>

I have this html:

<div class="row">
	<div class="col-sm-1 col-xs-1">&nbsp;</div>
	<div class="col-sm-5 col-xs-5" style="padding-top:2px; padding-bottom:2px;">Comments:</div>
	<div class="col-sm-5 col-xs-5" style="padding-top:2px; padding-bottom:2px;"><textarea rows="5" cols="80" name="comments">
		</textarea></div>
	<div class="col-sm-1 col-xs-1">&nbsp;</div>
</div>

Open in new window


When page loads, cursor is tabbed over one tab in the <textarea> body. Never seen this before. How can I force cursor to position 1 in the text area box onLoad?
0
Richard Korts
Asked:
Richard Korts
1 Solution
 
leakim971PluritechnicianCommented:
you've a tab line 5 so go for this :

<div class="row">
	<div class="col-sm-1 col-xs-1">&nbsp;</div>
	<div class="col-sm-5 col-xs-5" style="padding-top:2px; padding-bottom:2px;">Comments:</div>
	<div class="col-sm-5 col-xs-5" style="padding-top:2px; padding-bottom:2px;"><textarea rows="5" cols="80" name="comments"></textarea></div>
	<div class="col-sm-1 col-xs-1">&nbsp;</div>
</div>

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now