# Simple Validation, Please

**URL:** <https://forum.kirupa.com/t/simple-validation-please/186744>\
**Category:** web dev\
**Created:** [April 24, 2006, 10:08am UTC](https://forum.kirupa.com/t/simple-validation-please/186744 "2006-04-24T10:08:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaboo](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shaboo](https://forum.kirupa.com/u/shaboo)\
**Post date:** [April 24, 2006, 10:08am UTC](https://forum.kirupa.com/t/simple-validation-please/186744/1 "2006-04-24T10:08:15Z")

</div>

Hello,

I cant seem to get the validation on the radio buttons, check boxes and list box to work, ive entered the code which is quite hefty for this but i have to do it like this.

Any assistance to fix this would high appreciated as all this is burning me brain

Kind regards

---

<div class="post-metadata">

**Author:** ![J11](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@J11](https://forum.kirupa.com/u/J11)\
**Post date:** [April 24, 2006, 10:22am UTC](https://forum.kirupa.com/t/simple-validation-please/186744/2 "2006-04-24T10:22:47Z")

</div>

What exactly you want to validate.  
Keep the one default value selected for radio buttons, check boxes and list box.  
there is no need to validate. bcoz u already have the values

---

<div class="post-metadata">

**Author:** ![shaboo](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shaboo](https://forum.kirupa.com/u/shaboo)\
**Post date:** [April 24, 2006, 10:44am UTC](https://forum.kirupa.com/t/simple-validation-please/186744/3 "2006-04-24T10:44:46Z")

</div>

> [@J](#):
>
> What exactly you want to validate.  
> Keep the one default value selected for radio buttons, check boxes and list box.  
> there is no need to validate. bcoz u already have the values

I want to validate that one of the radio buttons have been selected, a check box has been selected and list box.

See with the attachment when you please send a message pops up for each except those.

i cant figure out why

---

<div class="post-metadata">

**Author:** ![J11](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@J11](https://forum.kirupa.com/u/J11)\
**Post date:** [April 24, 2006, 11:33am UTC](https://forum.kirupa.com/t/simple-validation-please/186744/4 "2006-04-24T11:33:33Z")

</div>

i think there is no need to validate. just keep some default value checked/selected:

> \<b\>Gender:\</b\>&nbsp;&nbsp;  
> Male:&nbsp;\<INPUT Name =“RadOption” TYPE=“radio” checked\>  
> &nbsp;&nbsp;  
> Female:&nbsp;\<INPUT TYPE=“radio” Name=“RadOption”\>

> \<b\>Level:\</b\>\</TD\>  
> \<TD width=“95” height=“33”\>  
> \<select size=“1” name=“Level”\>  
> \<option\>Select Level\</option\>  
> \<option selected\>TAFE\</option\>  
> \<option\>Under Graduate\</Option\>  
> \<option\>Post Graduate\</option\>  
> \</select\>

> \<b\>TAFE\</b\>\<INPUT Name = “ChkBox” TYPE=“checkbox” value=“ON” checked\>  
> &nbsp;  
> \<b\>Business\</b\>\<INPUT TYPE=“checkbox” Name = “ChkBox” value=“ON”\>&nbsp;  
> \<b\>Science\</b\>\<INPUT TYPE=“checkbox” Name = “ChkBox” value=“ON”\>&nbsp;  
> \<b\>Nursing\</b\>\<INPUT TYPE=“checkbox” Name = “ChkBox” value=“ON”\>&nbsp;  
> \<b\>Computing\</b\>\<INPUT TYPE=“checkbox” Name = “ChkBox” value=“ON”\>&nbsp;\<BR\>

---

<div class="post-metadata">

**Author:** ![shaboo](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shaboo](https://forum.kirupa.com/u/shaboo)\
**Post date:** [April 24, 2006, 11:39am UTC](https://forum.kirupa.com/t/simple-validation-please/186744/5 "2006-04-24T11:39:57Z")

</div>

> [@J](#):
>
> i think there is no need to validate. just keep some default value checked/selected:

Goodthinking. thanks for the help J ! now my head has stopped hurting and now dont have to worry about this

thank again

---

<div class="post-metadata">

**Author:** ![shaboo](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shaboo](https://forum.kirupa.com/u/shaboo)\
**Post date:** [April 24, 2006, 11:49am UTC](https://forum.kirupa.com/t/simple-validation-please/186744/6 "2006-04-24T11:49:04Z")

</div>

> [@shaboo](#):
>
> Goodthinking. thanks for the help J ! now my head has stopped hurting and now dont have to worry about this
> 
> thank again

Just over the code and thought about i really need it to validate, here is an example i found but using a different code. [Computer Tech Support – Javascript, HTML, Stylesheets, Networking – Software for Math, Physics, and VPN](http://www.felgall.com/javatip2.htm) now how do i make my code do that for list boxes, check boxes, and radio.

im going somewhere wrong in the code
