Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-19-2013, 01:53 PM #1
- Join Date
- Jul 2013
- Thanked 0 Times in 0 Posts
Place caret at the beginning of the field.
The solution I am looking for is posted by mcpDESIGNS at stackoverflow
What I wish to have, is forcing the caret position back to 0 as soon as the field is focused.
I have created a fiddle which will help demonstrate what I'm doing.
I assume the way I'm calling setCaretPosition is wrong, any suggestion ?
07-22-2013, 04:39 PM #2
- Join Date
- Jun 2002
- Thanked 236 Times in 233 Posts
You should just be using placeholder attribute to show the hint text.
For browsers not supporting this attribute (IE 9 and below), there's a lot of plugins out there.Code:<input type="text" id="search_string" placeholder="Search..." />
Tower of Hanoi Android app (Ad-FREE!)
Tower of Hanoi Android app (FREE!)
Tower of Hanoi Leaderboard
Samegame Facebook App
Samegame Facebook App Leaderboard
vBulletin 5 Floating Bar extension
vBulletin 5 Slideshow extension
vBulletin 5 Quote Selected Text extension
vBulletin 5 Profile Preview Tooltip extension