We would like to know how to add outline to checkbox.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.4.4.min.js'></script>
<script type='text/javascript'>
$(window).load(function(){<!-- w w w. jav a2s . c o m-->
$(function(){
$('#reg_checkbox').css('outline-color', 'red');
$('#reg_checkbox').css('outline-style', 'solid');
$('#reg_checkbox').css('outline-width', 'thick');
});
});
</script>
</head>
<body>
<input type="checkbox" id="reg_checkbox" />
</body>
</html>
The code above is rendered as follows: