In a div, I have some checkbox. I\'d like when I push a button get all the name of all check box checked. Could you tell me how to do this ?
var aArray = []; window.$( "#myDiv" ).find( "input[type=checkbox][checked]" ).each( function() { aArray.push( this.name ); });
You can put it in a function and execute on click of the button.