473,386 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Hiding section of a form until a specified OPTION is selected from DropDown

1
Okay, I've got 3 sections to this form here:
http://www.askfritz.com/formQuestion.txt

Contact Information, Equipment and Message.

I would like to make the Equipment section of the form hidden until the selection Rentals via drop down menu is chosen from the Contact Information section.

So I'm not too sure if I want to use javascript or php for this. I'm pretty sure I'm going to be using javascript, correct?

I'm just assuming it's like this. Going to have some Javascript code to have that section of the form hidden at all times until the mouseClick of the rentals is selected which will then show our hidden field. I'm not sure if CSS is involved in this, display:hidden, and display:block. But that's why I'm here asking for your expert advice!

Thank you guys so much.
Jul 2 '07 #1
1 1344
kovik
1,044 Expert 1GB
Both JavaScript and PHP could do it, but JavaScript doesn't require the form to be sent first. You're interested in the 'change' event for the dropdown box, and messing with the CSS 'display' property of whatever you plan for the box to trigger (or AJAX if your adventurous.).
Jul 2 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: middletree | last post by:
I had this going yesterday, but it seems to be forgotten because it's so far down the list now. www.middletree.net/dropdown.htm This is from an Intranet app I have going in ASP. I have no...
5
by: Nick Calladine | last post by:
Learning : Loop to list all dropdown box values on a form Can some one point me in the right direction : I have a form which I want to loop through I basically want to get all the selected...
2
by: Tim Graichen | last post by:
I may have already asked this one, but, Is there anyway of hiding the dropdown control button on a combobox until the field has focus? Because the values in the combobox can be between 5...
0
by: ab_j | last post by:
I have a user control that contains a dropdown which I want to use as a menu on multiple .aspx pages. Basically, all I am trying to do is pass the selected value of the dropdown in the user...
7
by: brendan.wong | last post by:
hello. i have a really simple form that asks the user to select a Month from a dropdown. the first time a user visits the page, the highlighted option should be October, which works fine. then,...
4
by: assgar | last post by:
Hi I am stuck on a problem. I use 3 scripts(form, function and process). Development on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. The form displays...
4
by: Greg Scharlemann | last post by:
I'm trying to setup a dyamic dropdown list that displays a number of text fields based on the selected number in the dropdown. The problem I am running into is capturing the data already entered...
8
by: Rabel | last post by:
I am new to asp and I am having a little trouble with the Request.form option. What I want to do is I have a dropdown box. <select name="selecter" class="text" id="selecter"> <option...
1
by: roland-d | last post by:
Hello all, Toggling divs is a popular subject and I have found plenty of information and was able to make it work. There is only 1 thing I am still stuck with for quite some time. I have a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.