Hi this is a jquery question:
jquery
supposed i have this:
try something like this, you don't need to iterate
$(document).ready(function () { $("#submit").click(function(){ if($(".select").is(':checked')){ alert($(".select:checked").attr('id')); } }); });