PDA

View Full Version : Multiple input



nuna
04-22-2007, 04:04 PM
hi all,
i have one <select> form with options (0,1,2,3), when the value is change, when i select option 2, will be show 2 input text.

eg:

NORMAL
(when 0 selected is nothing happend)
-------------------------------
<select name=test>
<option value=0 selected>0</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
</select>

WHEN I SELECT ONE OPTION
(when 2 selected, will be create/show new input text)
-------------------------------
<select name=test>
<option value=0>0</option>
<option value=1>1</option>
<option value=2 selected>2</option>
<option value=3>3</option>
</select>

<input type=text name=in1 /> <-- new when 2 opt is selected
<input type=text name=in2 /> <-- new when 2 opt is selected


help me please...
thanks

mburt
04-22-2007, 04:19 PM
Chained selects script:
http://www.dynamicdrive.com/dynamicindex16/chainedselects/chainedselects.html

nuna
04-22-2007, 04:30 PM
can you give the simple example code for me? just simple.

help me please...
thanks...