I need to make sure that all the radio groups have been answered before I enable the submit button. If I have:
var radioBtns = $(\'input\').filter(\':radio\
This works:
var all_answered = true; $(':radio').each(function(){ if($(':radio[name='+$(this).attr('name')+']:checked').length == 0) { all_answered = false; } }); alert(all_answered);
Working demo: http://jsfiddle.net/AlienWebguy/8Cu6d/1/