I need to unchecked a checkbox. It is doing everything like alert or removing div but not unchecking the checkbox. I have used both attr and prop method. The checkbox id is ok. Even it doesn't show any error in firebug console. Can anyone please help me on this please? here are my code below ::>
$('html').on('click', '#inScopeDiv .remButton', function () {
var currId = $(this).attr('id');
var chkBoxId = "#chk"+currId;
alert(currId);
alert('#chk'+currId);
$(chkBoxId).prop("checked", false);
$(chkBoxId).attr("checked", false);
$('#div'+ currId).remove();
$('#inScopeActionDiv' + currId).remove();
});
Aucun commentaire:
Enregistrer un commentaire