manu
manu

Reputation: 77

CSS Border for checkbox

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

Answers (2)

Eric Fortis
Eric Fortis

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

Joe Enos
Joe Enos

Reputation: 40393

First result on Google - seems like this one worked for them:

http://www.webdeveloper.com/forum/showthread.php?t=122669

Upvotes: 0

Related Questions