Vicky Kumar
Vicky Kumar

Reputation: 1408

Hide text field blinking cursor in IE or even change blinking cursor color to white

How to hide input field blinking cursor in IE.

This is not duplicate since there are many similar question on but so far i have seen does not works in IE.

When I simply use this css it works fine chrome and Firefox but in IE it only hides character not blinking cursor.

.hideChar{
   color: white !important;
}

At the same time I don't want to do blur or change cursor position because in input field value is continuously coming I just want to hide that character and cursor not alter value or cursor position.

Upvotes: 1

Views: 4552

Answers (1)

Shrirang Kadale
Shrirang Kadale

Reputation: 498

I got the same problem and here is your solution Write pointer-events: none; CSS property for that input field.

Here is the solution http://jsfiddle.net/hqBsW/488/

In this example, this readonly input field will not show blink cursor in the IE browser.

Upvotes: 3

Related Questions