Reputation: 77
I am applying a style for a checkbox from jQuery
$("#reg_checkbox").css("border","thin solid red");
The border works fine in IE but not in mozilla , how can I make it browser compatible ?
Upvotes: 7
Views: 16734
Reputation: 17350
Use Outline: http://jsfiddle.net/Kqcx7/1/
$('#reg_checkbox').css('outline-color', 'red');
$('#reg_checkbox').css('outline-style', 'solid');
$('#reg_checkbox').css('outline-width', 'thin');
Upvotes: 18
Reputation: 40393
First result on Google - seems like this one worked for them:
http://www.webdeveloper.com/forum/showthread.php?t=122669
Upvotes: 0