I have a very simple drop down menu:
<select name="sNumR" id="sNumR" onChange="addTable()">
<option value=1>1</option>
<%For i=2 to 10
Response.write("<option value="&i&">"&i&"</option>")
Next%>
</select>
All I'm trying to do is access the selected value, whether it be the default value of 1 or otherwise. Please don't list a jQuery or javascript solution as I already know how to do that and am not concerned about that at all.
The simple: Request.Form("sNumR") doesn't work. I've tried it, many times...
What is it I'm missing? Is this even possible with vbscript/asp? I prefer a method that is simple as I believe this task should be but at this point I'm willing to take whatever I can get.
<select>wrapped in a<form>and is the formmethodset toPOST?Requestobject collections. To gain the value before use client side code such as JavaScript to access the value via the DOM. Something likedocument.getElementById("sNumR").value;for example. Don't confuse server side code with client side functionality, remember the server knows nothing of your page just what you send to it via form submissions (be it vanilla forms or ajax calls).