Hi this is a jquery question:
jquery
supposed i have this:
Are you only checking one checkbox at a time?
alert( $(".select:checked").attr('id') );
Or, if you have multiple checkboxes checked at once:
$(".select:checked").each(function(){ alert($(this).attr('id')); });
Demo: http://jsfiddle.net/UTux2/