/ Published in: JavaScript
Giorgio fecit. Serve per controllare, a partire da un checkbox, che non ne siano selezionati altri nella stessa riga.
Expand |
Embed | Plain Text
$(document).ready(function (){ $("tr[class=check_unique]").each(function (){ $(this).find("input[type=checkbox]").each(function(){ var selected_name=$(this).attr("name"); $(this).click(function (){ $(this).parents("tr[class=check_unique]").find("input[type=checkbox]").each(function (){ var curr_name=$(this).attr("name"); if(selected_name!=curr_name)document.forms['FORM_INSERT_CENTRI'].elements[curr_name].checked=false; }); }); }); }); } );
You need to login to post a comment.
