| |
ehvbs
Posts: 2201
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
|
Hi Jim, just refer to the select via document.all - like this: <html> <head> <title>position set</title> <script language="vbscript" > Sub button1_onclick() set newOption = document.createElement("OPTION") newOption.Text = "A new Option" newOption.Value = "N" document.all.selectb.Add newOption End Sub </script> </head> <body> <form> <select id="selectX" name="selectb" size="8" > <option value="original1" selected="selected">Position 1</option> </select> <br> <input type="button" name="button1" value="add postion" ><br> </form> </body> </html> Good luck! ehvbs
|
|