problem submitting form
problem submitting form
$('form#formPhase1').submit(function(e) {
e.preventDefault();
var samplesYesNo = $("input[@name=orderSamples]:checked").val();
console.log(samplesYesNo);
$(this).submit();
});
how to get value for radio button I got from here:
http://forum.jquery.com/topic/checking-if-certain-radiobutton-is-checked
and yet, console.log()stmt prints "empty string"; and not only that, but it prints endlessly, and at the end it says "too much recursion"... the only way for it to print only once is if I comment out $(this).submit line.. but then how do I submit the form? they want me to pass to next page/form what the user ordered..
thank you..