July 22nd, 2013, 12:37 AM
Why does alert(payment_option) alerts undefined?
In this page, click on Book Now, then radio button click on Paypal, it should alert Paypal. Why doesn't it?
It's line 466 in source.
July 24th, 2013, 03:34 PM
You are alerting the value of the input element "focus_element"; and..., it's value is "none". To get your code to alert "paypal"; then, you need to do this:
radioCollection = document.forms[formName].elements['payment_option'].value;