You need to sign in to do that
Don't have an account?
Jonny Simmo
How can I reference Visualforce radio button values in JavaScript?
Hi,
I'm hoping this is an easy thing to do?
Within my Visualforce page I have a radio button, and I want to reference the values of the radio button within a JavaScript function within the same page. How can I do this?
I am not picking any of the Radio Button options by default so when the user clicks Submit I want to check that they have selected at least one option.
Many thanks
I'm hoping this is an easy thing to do?
Within my Visualforce page I have a radio button, and I want to reference the values of the radio button within a JavaScript function within the same page. How can I do this?
I am not picking any of the Radio Button options by default so when the user clicks Submit I want to check that they have selected at least one option.
Many thanks
I have tried this but it doesn't seem to work?
I put a couple more alerts in the code, and it doesn't ever go into the for loop?
I wonder if it is retreiving the radiobutton correctly?