HTML:
<div>
<select type="text" id="filterType" class="myInput">
<option id="one">one</option>
<option id="two">two</option>
<option id="three">three</option>
</select>
</div>
JS:
var currentFilterDropDownOpt;
$("#filterType").change(function(){
currentFilterDropDownOpt = $(this).val();
});
I want to set this currentFilterDropDownOpt to my asp variable.
ASP:
<%
DIM filterDD
filterDD = currentFilterDropDownOpt; //something like this
%>
Is there anyone can help?
TIA
<form>that points to the ASP you want to process the value in, make sure theselecthas anameattribute then call it via that name in the ASP page usingRequest("select-name-here"). Don't forget the form will need something to trigger the submit, be it a submit button or through code usingdocument.yourform.submit();.