Hi this is a jquery question:
jquery
supposed i have this:
You aren't capturing the checked checkbox, you're only asking "is there one checked?".
$("#submit").click(function(){ var elem = $(".select:checked"); if(elem.length > 0){ alert(elem.attr('id')); } });