I have aform which has lots of radio button both visible and hidden. I need to get only the visible radio buttons and do some manipulations. I am trying the below code. But its not working. Can somebody please help me in this. One group has 4-5 radio buttons. I need to check any of the radio button in the group is checked or not. I have the code which does just the opposite. I need something like this
$(group).find(':radio:visible:not(:checked)').each(function() {...});
But this is giving some error.
I have a fiddle created. http://jsfiddle.net/jUQYr/45/
Actually I need to see if any of the radio button is checked or not. If nothing is selected it should display error and return false. If both the radio groups are selected it should return true. But the fiddle is acting just the opposite. I tried make the fiddle with the above code. But its not working correctly. Can somebody please correct the fiddle?
Thanks in advance..