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 mak开发者_运维百科e it browser compatible ?
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');
First result on Google - seems like this one worked for them:
http://www.webdeveloper.com/forum/showthread.php?t=122669
精彩评论