Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Displaying the input fields on selection
ShivPrakash Srivastava
Ranch Hand
Posts: 88
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
I have a form,which has a dropdown.On selection of a value from the dropdown,some fields shud be displayed and remaining shud be hidden.
Can anyone pls let me know how to do this in javascript or in HTML
Thanks
Shiv
Smith Li
Ranch Hand
Posts: 114
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Everytime the selection changes you could use the "display" property.
It will be something like this:
document.getElementById(temp1).style.display = "none"; document.getElementById(temp2).style.display = "inline";
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Using ActionForm for displaying fields
I see results posted!
Executing a servlet without redirecting to it
Date Validation
Contents of one form on another one.
More...