Hello,
I got the following html
What i want is when a user chooses one of the cities from the list.. it should show up in the textbox.. so i wrote the JCopyField() function as followsCode:<select id="P_City" tabindex="9" onSelect="JCopyField()" > <option value="1">Boston</option> <option value="2">Ithaca</option> <option value="3">New York</option> </select> <input name="" type="text" id="E_City">
Code:Function JCopyField(){ document.T_Form.getElementById('E_City').value = document.T_Form.getElementById('P_City').value; }
But it does not work.. can anyone take the bug out.. its driving me buts
regards,
kimoo.




Reply With Quote