Reputation: 2663
Any thoughts on best approach to be able to focus on an input and be able to get the cursor to show up in the input?
Edit: Solution had been to use focus() but also make sure I had only one element with the id I had been selecting for
Upvotes: 0
Views: 151
Reputation: 18695
jQuery has a function for this .focus
Fiddle: http://jsfiddle.net/0ceqkwv3/
$('#idOfInput').focus()
Upvotes: 4