Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
50
rated 0 times [  51] [ 1]  / answers: 1 / hits: 39308  / 11 Years ago, wed, june 26, 2013, 12:00:00

If I have an <input> field with the readonly attribute, it still appears with the I-beam text cursor. Is there a way to stop that cursor from showing?



I cant use the disabled attribute because request.getParameter() does not work on disabled fields.


More From » html

 Answers
15

Try this markup in your form for text field



<input type=text value=test onfocus=this.blur() readonly=readonly />



main thing which helps you hide the cursor is onfocus=this.blur().


[#77399] Tuesday, June 25, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gerardob

Total Points: 571
Total Questions: 115
Total Answers: 96

Location: Cyprus
Member since Mon, Oct 24, 2022
2 Years ago
;