I have a text input in my HTML. Is there a way to hide the blinking text caret when the input gets focus?
I am open to doing this with JavaScript or CSS.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
The idea is to create a second, invisible
<textarea>over/on-top-of the real one. The user is typing in the invisible one but the text doesn’t appear (nor the caret/cursor) as it is invisible! You then use JavaScript to assign its value to the visible one.But it doesn’t seem to work in IE8 :'( the caret is still visible even though the opacity is cranked up to 11.
But it works in Firefox… ?