I have a check box on my form with id="chkBold". When i click or check this checkbox, i want element
to change color. Here is my code and entire page. It does not change color. Can you see what is wrong here?
Thanks.
(function () {
$("#chkBold").click(function(){
if($("#chkBold").is(':checked')) {
$("p").css('color', 'Blue');
}else{
$("p").css('color', 'Red');
}
});
});
jsfiddle: http://jsfiddle.net/netten/dAesw/