Revision: 36267
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 20, 2010 02:53 by tuffo19
Initial Code
$(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; }); }); }); }); } );
Initial URL
Initial Description
Giorgio fecit. Serve per controllare, a partire da un checkbox, che non ne siano selezionati altri nella stessa riga.
Initial Title
Jquery seleziona checkboxes
Initial Tags
form, js, jquery
Initial Language
JavaScript