I was using the Add class method
$("select[name='" + ABC+ i + "']").addClass('addBorder');
This was working in Chrome , FF , safari but not on IE
So changed it to the .css property ;
$("select[name='" + ABC + i + "']").css({"border-color":"red"});
But this is not working either in IE ; Does any one have more suggestions on it ?
On older IE you cannot change the border of a
selectelement (and, unfortunately, a lot of other things). That’s why it seems it doesn’t workAs countercheck,
$("select[name='" + ABC+ i + "']").lengthshould be greater than zero on every browser you’re trying (IE included)If you have to change border I just suggest to wrap your select into another element and set a border-color to that wrapper.