dropdown list (combobox) in form 2 : Option Select ComboBox : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Option Select ComboBox »

 

dropdown list (combobox) in form 2



<html>
<head>
<script type="text/javascript">
    function put(){
        option=document.forms[0].dropdown.options[document.forms[0].dropdown.selectedIndex].text
        txt=document.forms[0].number.value
        txt=txt + option
        document.forms[0].number.value=txt
}
</script>
</head>

<body>
<form>
Select numbers:<br>
<select name="dropdown">
  <option>0</option>
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
  <option>6</option>
  <option>7</option>
  <option>8</option>
  <option>9</option>
</select>
<input type="button" onclick="put()" value=">>>"
<input type="text" name="number" size="20">
</form>
</body>

</html>




           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» Option Select ComboBox