You need to sign in to do that
Don't have an account?

selectall checkbox problem
hi every one,
i dont know java script much,
here i used check box,
if i select top most one , it selects all options but the problem is if i unselect any one of the option, the top most check box should be unselected,
please help,
<script>
function checkAll(cb)
{
var inputElem = document.getElementsByTagName("input");
for(var i=0; i<inputElem.length; i++)
{
if(inputElem[i].id.indexOf("checkedone")!=-1)
inputElem[i].checked = cb.checked;
}
}
</script>
Hi,