This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Javascript with Radio Button
 
Similar Threads
Jtable question
Processing Radio Buttons in a Form/Servlet
Help??
Replacing Entire Select Box
MultiComponent JTable