![]() |
javascript question
Hi,
Im trying to make a form....but I think I need a javascript to get it the way i want it. I have this html code: HTML Code:
<select name="ltype"> Thanks in advance! |
You need to use JS to toggle the 'display' CSS property of the form parts. When a page element has its display set to 'none', then it is removed from view. So you need to attach an 'onchange' event to the select box, and show/hide parts of the form depending on what is selected.
Here's an example: Code:
<html> |
By default, I dont want any of the options to show up, how can i achieve that?
Thank you so much for taking the time to help me! |
Just stick style="display:none" in the tag to hide it.
|
great, thanks!
just one more thing....i want to add <option selected>something here</option> but when i do that (and yes i have removed selected="selected" from form_part1) everything stops working. I mean, the parts wont show up. Thanks in advance! |
All times are GMT. The time now is 07:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|