This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

How to make table visible on radiobutton state

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have tried the following coding but it doesnt seem to work right. After clicking the radio button the table order gets mixed up... How do i make it so that the at any one time only one table is shown and that it is linked to the radiobutton. Thank you for your help.

Please see source and problem here.


http://www.studio6.com.sg/button.html
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this way.

 
vanan saravanan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much it works well.
 
vanan saravanan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry but i'm having some problems again. I'm not sure how to change my code so that it works. When i try it on a normal html page it works fine.

My page is here.
http://studio6.com.sg/help.html

under Particulars Of Parents/Guardian
when parents radio button is selected i need the parents fields to appear and the guardian one to go off.

And vice versa when guardian is selected.

Thank you for all help. Greatly appreciated.
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you know, it would help if you pasted some code on what you have tried.
then based on that, the discussion on what's wrong and what's the correct way can proceed.
 
vanan saravanan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My apologies for not being clear Niki Nono. This is a crucial part in the script to ensure the table visibility. But in my coding i cant seem to find the following line.

<div id="table1" style="display:none;margin-left:10px;">


To see my lines of code and the page. Do click the link below.
http://studio6.com.sg/help.html
 
vanan saravanan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have gotten the script to work. Thanks all who helped.
 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!