Hi
I've got a form which calls an asp page with POST. Within this form I have a selection box which has a two different options, each identified by a short string - in this case either cc or ca. When I come to call the value of this using:
var payMet = Request.Form("payMethod");
it is not returning just the string. It is likely its returning the selection box "payMethod". This means that when I try to do a comparison in JavaScript to see if the strings are alike:
if(payMet=="cc")...
I always get false. Is there any way around this? payMet.value or .text doesn't seem to work.
Many thanks!
I've got a form which calls an asp page with POST. Within this form I have a selection box which has a two different options, each identified by a short string - in this case either cc or ca. When I come to call the value of this using:
var payMet = Request.Form("payMethod");
it is not returning just the string. It is likely its returning the selection box "payMethod". This means that when I try to do a comparison in JavaScript to see if the strings are alike:
if(payMet=="cc")...
I always get false. Is there any way around this? payMet.value or .text doesn't seem to work.
Many thanks!