i can add checked
property using following code
$('#specificCheckBox').prop('checked', true);
but how can remove this property using jquery or Javascript.
i can add checked
property using following code
$('#specificCheckBox').prop('checked', true);
but how can remove this property using jquery or Javascript.
Don't remove it, but set it to false:
$('#specificCheckBox').prop('checked', false);
IN javascript:
document.getElementById("specificCheckBox").checked = false;
In Jquery:
$('#specificCheckBox').prop('checked', false);//version 1.6+
here is the fiddle
$('#btnCheck').click(function(){
$('#check').attr('checked', true);
});
$('#btnUncheck').click(function(){
$('#check').attr('checked', false);
});