unemployment Posted June 6, 2011 Share Posted June 6, 2011 How can I make it so that when I click a link, my input box now has a cursor / focus set? Quote Link to comment https://forums.phpfreaks.com/topic/238523-click-link-sets-focus-on-input/ Share on other sites More sharing options...
Adam Posted June 6, 2011 Share Posted June 6, 2011 Use getElementById to return the input element's object, and then call the focus() method. Quote Link to comment https://forums.phpfreaks.com/topic/238523-click-link-sets-focus-on-input/#findComment-1225775 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.