Java_Problem
asked on
Javascript onChange Textbox
Hello All
I have this select drop down
<select name="title" class="form" onChange="javascript:addFi eld();">
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Others">Others</opt ion>
</select><br>
This is somewhere in my JSP page. On Change of title as Other, I need to bring a textbox right under this
select drop down.
function addField(){
if(MainForm.title.options[ MainForm.t itle.selec tedIndex]. value == "Others"){
// need to do some code to place the textbox under select drop down
}
How can I place the textbox exactlt at that place. I don't know. Any help will be greatly appreciated
Thanks
I have this select drop down
<select name="title" class="form" onChange="javascript:addFi
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Others">Others</opt
</select><br>
This is somewhere in my JSP page. On Change of title as Other, I need to bring a textbox right under this
select drop down.
function addField(){
if(MainForm.title.options[
// need to do some code to place the textbox under select drop down
}
How can I place the textbox exactlt at that place. I don't know. Any help will be greatly appreciated
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER