Link to home
Start Free TrialLog in
Avatar of Java_Problem
Java_Problem

asked on

Javascript onChange Textbox

Hello All

I have this select drop down

<select name="title" class="form" onChange="javascript:addField();">
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Others">Others</option>
</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.title.selectedIndex].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
ASKER CERTIFIED SOLUTION
Avatar of shaggy_the_sheep
shaggy_the_sheep

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Java_Problem
Java_Problem

ASKER

Thanks a lot