I've tried to do a really easy peasy example of what I'm trying below.
Could you please take a look and correct me where I'm going wrong please ?
Thanks ! ;)
Printable View
I've tried to do a really easy peasy example of what I'm trying below.
Could you please take a look and correct me where I'm going wrong please ?
Thanks ! ;)
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>
Excellent, thanks once again Chris - works great!