Remove IE10's "clear field" X button on certain inputs?

Niet the Dark Absol picture Niet the Dark Absol · Dec 23, 2012 · Viewed 313.2k times · Source

It's a useful feature, to be sure, but is there any way to disable it?
For instance, if the form is a single text field and already has a "clear" button beside it, it's superfluous to also have the X. In this situation, it would be better to remove it.

Can it be done, and if so, how?

Answer

Ry- picture Ry- · Dec 23, 2012

Style the ::-ms-clear pseudo-element for the box:

.someinput::-ms-clear {
    display: none;
}