In jQuery, I\'d like to select all groups of radio buttons where there are no buttons checked.
Or, is there a way in which I can select all radio button groups and i
To find all radio groups:
var radio_groups = {}
$(":radio").each(function(){
radio_groups[this.name] = true;
})
to find which radio group has checked radio boxes and which hasn't:
for(group in radio_groups){
if_checked = !!$(":radio[name='"+group+"']:checked").length
alert(group+(if_checked?' has checked radios':' does not have checked radios'))
}