dimanche 12 avril 2015

Using check-box in one column to disable check-box in another column


Vote count:

0




I have a table with two columns of check-boxes, Amend[] and Delete[]. On any row, by checking either one the other is disabled, preventing both being checked. This is my attempt:



var amend=document.getElementByName('Amend');
var del=document.getElementByName('Delete');
function Amend(){
for(x=0;x<amend.length;x++)
{
if(amend[x].checked)
{
del[x].disabled=disabled;
}
}


Any help appreciated.



asked 45 secs ago







Using check-box in one column to disable check-box in another column

Aucun commentaire:

Enregistrer un commentaire