I have a dropdown list that calls a vbscript.The issue is that when I try to get the value of the drop down list I get “object doesnt support property” or “method error”.
<select onchange='callMe()' id='selectMe'>
<option value='1'>1</option>
<option value='3'>3</option>
<option value='2'>2</option>
</select>
<SCRIPT LANGUAGE="VBScript">
Sub callMe()
MsgBox(selectMe.value)
End Sub
</SCRIPT>
Can anyone point me in the correct direction please
You can use W3Schools reference on the HTML DOM Select Object.
When using VBScript, you will get implicit events base on the object’s id so you don’t need to explicitly call them (i.e. selectMe_onchange). I’ve reworked your example as follows: