Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML set focus after text in textbox

 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have text in a HTML text box,

Is there any way to set that the cursor be set after the text in a text box?

i.e. lets say the text in the text box is "text" and the user clicks on an anchor link "goToText",

When the user clicks on "goToHere" the cursor goes to the text box and the cursor is at the end of the text "text"?

Thanks in Advance,

Niall
 
A day job? In an office? My worst nightmare! Comfort me tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!