Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop-down and text input fields

Status
Not open for further replies.

robburne

Programmer
May 10, 2005
33
GB
Hi,

I need to create a drop down select which asks the user to select a number from 1-5.

Depending on the value selected I then need to provide 4 text fields for input.

Is this possible, I can use php too if required.

Any pointers or suggestions would be appreciated.

Thanks,

Rob.
 

It should be possible with JavaScript, without PHP.

Can you clarify how many boxes you need to appear depending on what options are chosen? Is there any pattern / formula, or are there always 5 displayed? Do they ever hide?

I would use DOM methods (createElement, appendChild, removeChild) to create, add, and remove the input elements from the form.

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top