Return to Snippet

Revision: 36267
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