mercredi 1 avril 2015

Jquery checkbox does'n work (checked and unchecked)

It's doesn't work ( Why? Can anybody explain, please



function checkBox()
{
if($('#checkbox').prop('checked', true))
{
$('body').css('background','yellow');
}
else if ($('#checkbox').prop('checked', false))
$('body').css('background','blue');
}




Aucun commentaire:

Enregistrer un commentaire