never fear HTML man is here! LOL
use this
Code:<html> <head></head> <script language="vbscript"> Sub Button1_OnClick MsgBox "The Value selected from the combobox is " & document.Form1.IDCar(document.Form1.IDCar.selectedIndex).value End Sub </script> <body> <input type="button" value="click me" name="button1"> <br><br> <form Name="Form1"> <select Name="SelCar" ID="IDCar"> <option value="Mini">Mini</option> <option value="Mini Metro">Mini Metro</option> <option value="Metro">Metro</option> </select> </form> </body> </html>




Reply With Quote