Meaningless Drivel is fun!
The moose likes HTML, CSS and JavaScript and the fly likes help in radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "help in radio button " Watch "help in radio button " New topic

help in radio button

Babu Singh
Ranch Hand

Joined: Aug 17, 2009
Posts: 83
i have four radio button in a row.
name and id is same of all four button in a row.
suppose, name and id for all buttons in first row is radiobutton0. for second row it is radiobutton1, for third row it is radiobutton2. thus i have 10 rows in a table.
my aim is when i submit the page, one button must be checked in a row else it show a msg box that please fill the corresponding radio button. .
i want to get the value of radio button either true or false.

i run the following code:

this method execute the loop and display all radiobutton Names.
How i find radiobuttonValue which is either true or false.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Get yourself some good references like this one where it says checked

I agree. Here's the link:
subject: help in radio button
It's not a secret anymore!