Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
158
rated 0 times [  162] [ 4]  / answers: 1 / hits: 76536  / 13 Years ago, wed, july 27, 2011, 12:00:00

I was wondering if there was a way for text inside a input box (pre loaded using value=) to highlight when the user clicks on it?



input type='text' name='url' id='url' value='http://www.a-link.com/' />


EDIT



I need the text to he highlighted so the user can copy it.


More From » jquery

 Answers
24
<input type=text name=textbox value=Test onclick=this.select() />

[#90967] Tuesday, July 26, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
devonw

Total Points: 311
Total Questions: 116
Total Answers: 111

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
;