Remove “clear field” X button when Browser Mode : IE9 Document Mode:IE9 on certain inputs?
Asked Answered
S

2

8

How to remove the “clear field” X button when Browser Mode : IE9 Document Mode:IE9 on certain inputs.
I use this code

<STYLE type="text/css">
input[type=text]::-ms-clear{
  display: none;
  }

input[type=password]::-ms-reveal{
  display: none;
  }
</STYLE>

It's working fine when I choose browser mode like Browser Mode : IE9 and Document Mode:Standards and same as it is in (IE8,IE7).But it's not working for when I choose browser mode Browser Mode : IE9 and Document Mode:IE9 and same as it is in (IE8,IE7).

Stagehand answered 8/10, 2013 at 10:14 Comment(1)
possible duplicate of Remove IE 10 Clear Button From Input FieldVixen
V
12

This only appears inside IE10+ when you emulate older modes; you can't disable it using the CSS property as it's only defined in IE10+ mode.

Dupe of

Vixen answered 8/10, 2013 at 16:55 Comment(4)
its bug not only in ie10. also in ie8-ie9Mira
@miukki No, neither IE8 nor IE9 show the clear button.Vixen
@mike: That's, of course, debatable, insofar as the omission of a means to control this in legacy document modes was an unfortunate oversight for which bugs have been filed.Vixen
This is not a dupe of any of other posts mentioned in answer. All those posts talk about just IE10 and not about IE8 or IE 9 mode.Rife
P
0

try this css code by add important.

<STYLE type="text/css">
input[type=text]::-ms-clear{
  display: none !important;
  }

input[type=password]::-ms-reveal{
  display: none !important;
  }
</STYLE>
Paluas answered 7/9, 2023 at 7:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.