You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was struggling to get the validation working for my radio button group. After a while I noticed the fieldset around the radio buttons (with the same ID as the name attribute of the radio buttons) caused the issue. Below is the link to a jsfiddle. When you submit the form without selecting a radio button the validation passes on Safari (Chrome works as expected).
When removing or changing the id from "opt" to something else in the jsfiddle, the validation works as expected resulting in a 'invalid' alert box.
Do you have any idea what could be causing this behaviour?
Safari gets confused with having the same name, and it is reporting the incorrect value. For now, you should try and use a separate id for the fieldset. I will work on a solution, but it may require a little bit of a refactor.
Hi
I was struggling to get the validation working for my radio button group. After a while I noticed the fieldset around the radio buttons (with the same ID as the name attribute of the radio buttons) caused the issue. Below is the link to a jsfiddle. When you submit the form without selecting a radio button the validation passes on Safari (Chrome works as expected).
When removing or changing the id from "opt" to something else in the jsfiddle, the validation works as expected resulting in a 'invalid' alert box.
Do you have any idea what could be causing this behaviour?
http://jsfiddle.net/Zrg4q/3/
The text was updated successfully, but these errors were encountered: