Wednesday, May 30, 2012

Unchecking all checkboxes through JavaScript


Suppose we have 10 check boxes ..Checkboxes ID
function selectOnlyThis(id) {
    for (var i = 0;i <= 10; i++)
    {
        document.getElementById("Check" + i).checked = false;
    }
    
}

No comments:

Post a Comment