Home › Forums › JavaScript › I think I need a Javascript solution for radio button’s data › Re: I think I need a Javascript solution for radio button’s data
I do have some UI that hides that input field until selected, but I’m still trying to work out this first.
This is what your solution returns:
installments | Enter Custom..
installments | 2
btnSubmit | Submit
So you see I’m still sending two data values for the var ‘installments’, and only one (numeric) will be accepted all others throw an error.
Is there a way to check if the input field (installments) has data and then disable that second radio button? A disabled form element sends no data I’ve heard. I’d probably have to un-check the first radio, but that would be a small concession if this worked.
Thanks