jquery - CSS for a class is not working in IE11 only -


I am adding a class error for the AP tag and CSS for that class

 < Code> .error {border: 1 px solid # ff0000! Important; }  

This error class is added to the element with Jquery is working fine in all other browsers but the class is not adding CSS but in IE11. I can see the class and its CSS in the developer tool (inspecting the text box) but still the limit is not coming.

I do not know what is wrong!

html: - & lt; P class = "custom-multi-select-items" id = "industry-item" & gt; & Lt; / P & gt; Jquery has been written in a button click

jQuery: -

  $ ('savebtn'). Click (function () {$ ('.custom-multi-select-item'). AddClass ('error');});  

P has a css

 . Custom-multi-select-items {width: 100%; Margin-top: -29px; Background: white; Border: 1 px solid # E8E8E8; Min height: 30px; Padding: 5px; Padding-left: 14 pixels; }  

try it ..

  $ ( ('Select custom items'); $ ('# industry-items'). AddClass ('error');})  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -