/ Published in: jQuery
URL: http://stackoverflow.com/questions/1165627/jquery-and-radio-button-groups
Expand |
Embed | Plain Text
var radio_groups = {} $(":radio").each(function(){ radio_groups[this.name] = true; }) for(group in radio_groups){ if ($(:radio[name="+group+"]:checked).length ==0) { //not checked } else { //checked } }
You need to login to post a comment.
