doesn't deslect checkbox

Posted by Raghumv under ASP.NET on 7/26/2012 | Points: 10 | Views : 825 | Status : [Member] | Replies : 2
while calling this script in code behind when click caccel button . It doesn't deselect check box. It shows alert message

function Confirm(chkAction) {
// var OBJID = document.getElementById(chkAction);
var checkUpdate = confirm("test");
if (checkUpdate) {
document.getElementById(chkAction).checked = true;
}
else {
document.getElementById(chkAction).checked = false;

}
}

Raghu.M.V.
Software Engineer.



Responses

Posted by: Jayakumars on: 9/29/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
refer this

http://www.dzone.com/snippets/checkuncheck-all-checkboxes


Mark as Answer if its helpful to you

Raghumv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/29/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

Raghumv, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response