# Multiple radio button group validation

**URL:** <https://forum.kirupa.com/t/multiple-radio-button-group-validation/71795>\
**Category:** Uncategorized\
**Created:** [November 29, 2004, 6:30pm UTC](https://forum.kirupa.com/t/multiple-radio-button-group-validation/71795 "2004-11-29T18:30:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forwardtrends](https://avatars.discourse-cdn.com/v4/letter/f/cab0a1/32.png) [@forwardtrends](https://forum.kirupa.com/u/forwardtrends)\
**Post date:** [November 29, 2004, 6:30pm UTC](https://forum.kirupa.com/t/multiple-radio-button-group-validation/71795/1 "2004-11-29T18:30:34Z")

</div>

I have a form with 4 lines, each line has 4 radio buttons with values of 1-4.

example:

* * *

line 1 - () () () ()  
line 2 - () () () ()  
line 3 - () () () ()  
line 4 - () () () ()

* * *

I need to validate by making sure that each line has a unique value selected ie. if line 1 has the first radio button selected then you shouldnt be able to select the first radio button for the other 3 lines… in other words 1,2,3 and 4 have to be selected but on seperate lines. Can anyone point me in the right direction with a listener or have some code handy? I’d appreciate it.

Thanks!

Aaron  
[[color=#22229c]www.forwardtrends.com[/color]](http://www.forwardtrends.com/)
