wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript with Radio Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript with Radio Button" Watch "Javascript with Radio Button" New topic
Author

Javascript with Radio Button

Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
Hello,
I am working with JSP 2.0(EL enabled). I want to display data in a table. i will try to explain the look & feel of Table below.
Table has 2 columns & 3 rows(max.). First cloumn head is Select where for each row there would be a Radio Button & one of the default radio button would be selected depending on some other options(back end processing will provide the info. about the same). 2nd column contains some information for first row. Where as for 2nd & 3rd row i am trying to use a common area for information display in a table as shown below.
Requirement is when 2nd radio button is selected region "Textfields & combo" should dispaly data specific to 2nd option & same applies to 3rd radio button.
How i could achieve the same?

|-----------------|----------------------|
| Select | Description |
|-----------------|----------------------|
| 1st Radio | desc |
|-----------------|----------------------|
| 2nd Radio | |
|-----------------| Text fields & combo |
| 3rd Radio | |
|-----------------|----------------------|

Thanks in advance
Shrinivas
Christian Nash
Ranch Hand

Joined: Jan 17, 2006
Posts: 107
Hi,
Didn't quite understand the 2nd and 3rd radio button functionality.If i do not select either the 2nd or 3rd button what will the 2nd column display. Why would you want two radio buttons for the same area(description column) having different data?


- Christian
Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
This problem is solved....
See you can imagine as
2nd Radio Button when selected will display say Account No...Acccount Type etc of a user for Bank 'A' where as when i click on 3rd Radio Button it should display same information of say Bank 'B' that's why area is common
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript with Radio Button