101
rated 0 times
[
106]
[
5]
/ answers: 1 / hits: 100564
/ 12 Years ago, tue, april 24, 2012, 12:00:00
I'm trying to change the value of a text box with the the item I select from a drop down box. But it's not working.
I tried this HTML:
<select name=ncontacts id=contacts onchange=ChooseContact(this);>
</select>
and this JS:
function ChooseContact(data)
{
alert(data);
document.getElementById(friendName).value = data;
}
But the text box val is not updated.
More From » html