This seems like the most stupid question, but I cannot get this to work. I want to pass a parameter into my AJAX function from my HTML button. Code looks like:
<input type="button" onclick="signupAjax(1)" value="Sign up>
My AJAX function:
function signupAjax(int select)
{
....
//for test purposes
alert(select);
}
For whatever reason, the parameter isn't getting passed into the AJAX function. Seems pretty basic, but can't seem to get it to work.
I know there's no actual AJAX code there, the actual code works perfectly well. It would just make life easier if I could pass this parameter.
intpart and it should work