This week's giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line!
See this thread for details.
Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Javascript with Radio Button

 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 do some of my very best work in water. Like this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic