I am using javascript and ASP together and I am having a hard time setting a variable. I want to set an ASP varible to a certain value inside of a javascript function. Here is my code:
function setMeOR() {
<%
selection = "OR"
%>
//do some error checking to see if I get in this function
if(1==1)
alert("I am in the or function"
}
I execute the function but the variable doesn't seem to get set.
function setMeOR() {
<%
selection = "OR"
%>
//do some error checking to see if I get in this function
if(1==1)
alert("I am in the or function"
}
I execute the function but the variable doesn't seem to get set.