on-internet
← Community

Validate a form to ensure atleast one radio button is checked in a group

Stack Overflow ·

I am making a form with radio buttons in it. I am able to validate all other input except radio button. I got a accepted solution for this in this site Using JQuery to check if no radio button in a group has been checked but this is not working for me http://jsfiddle.net/ghan_123/trr185L2/2/ my code <input type='radio' name='datetime' value='1'>1 <input type='radio' name='datetime' value='2'>2 <input type='radio' name='datetime' value='3'>3 <input type='radio' name='datetime' value='4'>4 <input type='radio' name='datetime' value='5'>5 <br><button id='buttonnew'>validate</button> jquery $(docum

Comments

Sign in or sign up to comment and upvote.

No comments yet.