Drew
Drew

Reputation: 2663

Getting Cursor To Show Up On Input Focus

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

Answers (1)

Rick Calder
Rick Calder

Reputation: 18695

jQuery has a function for this .focus

Fiddle: http://jsfiddle.net/0ceqkwv3/

$('#idOfInput').focus()

Upvotes: 4

Related Questions