I am trying to use JS to set a global variable and then assign that variable to an
<input type="hidden" name="variable_name">
but I am not getting the value of the variable to the server. I get nothing and if I try to set a value
<input type="hidden" name="variable_name" value=variable_name>
I get "variable_name" and not the value of variable_name.
Does the form have visability to the JS variable for assignment? I execute the JS via a onClick= for the submit button.
Thanks for any help.
<input type="hidden" name="variable_name">
but I am not getting the value of the variable to the server. I get nothing and if I try to set a value
<input type="hidden" name="variable_name" value=variable_name>
I get "variable_name" and not the value of variable_name.
Does the form have visability to the JS variable for assignment? I execute the JS via a onClick= for the submit button.
Thanks for any help.