Hello,

I got the following html

Code:
<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">
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 follows

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.