Googlemap Api Code On Dropdown And Text Box
How to get the value that is selected in the dropdown box to a text box. I have a text box and a drop down box in which village names are listed.If the selection is changed that va
Solution 1:
This is a Javascript 101 question! I shouldn't answer but ....
<scripttype="text/javascript">functionselectChange(val)
{
document.getElementById("text_id").value = val;
}
</script><form><inputid="text_id"value=""type="text"size="10" /><br /><selectid="select_id"onChange="selectChange(this.value);"><optionvalue="">-- Select --</option><optionvalue="val1">val1</option><optionvalue="val2">val2</option><optionvalue="val3">val3</option></select>
Post a Comment for "Googlemap Api Code On Dropdown And Text Box"