jeudi 26 mai 2016

Enable and disable check boxes using javascript

Table with two checkboxes

I have a data table and it includes two check boxes called Manufacturing Defects and Scrap Items.I need to dissable Scrap Items,when I check the Manufacturing Defects vise versa. Please help me to find the answer. Bellow is my code part, I used to create checkboxes

row += '<td class="Item_Rejected1">' + '<input type="checkbox" name="active" value="checked" class="form-control input-sm" onchange="isActive()">' + '</td>';
row += '<td class="Item_Rejected2">' + '<input type="checkbox" name="active" value="checked" class="form-control input-sm" onchange="isActive()">' + '</td>';




Aucun commentaire:

Enregistrer un commentaire