Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help on HTML

 
Shrikanth Nekkanti
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created 3 radio buttons say R1,R2,R3.
By default R1 is selectd and Table corresponding to R1 say T1 is displayed along with R1 selection.
When user selects R2 Table corresponding to R2 say T2 should be displayed in place of T1. similarly when user selects R3 a table corresponding to R3 say T3 should be displayed in place of T1/T2.

Can anybody resolve this problem for me.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a function that does something like



add onclick handlers that call the function with the table id to show

onclick="showHide('T2');"

Make sure to set the display="none" on the tavles you do not want to appear.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic