<script src="js/jquery-1.2.6.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$.each($("input[type='checkbox']"), function() {
if ($(this).is(':checked') == false) {
$(this).css({
'background': 'blue'
});
};
});
});
</script>
如果checkbox未勾選就讓背景是藍色。