Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
154
rated 0 times [  157] [ 3]  / answers: 1 / hits: 25204  / 15 Years ago, fri, january 29, 2010, 12:00:00

I need to hide the text box blinking cursor in CSS / Javascript.



Is it possible?


More From » css

 Answers
20
<input type=text disabled=disabled/>


because i can't see any other reason you might want to do that.



edit:



i guess you want to allow the user to scroll the text that is larger than the area, but not show the blinking?



if that is so, you still want to disable it. not just hide the blinking cursor. if the user can't type there, it should be disabled. period.



now, if you still want to allow the user to see all the content, you have to make the input as big as the content. there is no escaping that.



and then limit the size with a parent div with CSS overflow: hidden or scroll.



<div style=overflow: scroll-x;><input size=255 value=some string 255 char long /></div>

[#97716] Tuesday, January 26, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
amari

Total Points: 736
Total Questions: 111
Total Answers: 90

Location: Saint Pierre and Miquelon
Member since Fri, Jan 28, 2022
2 Years ago
;