Problem: If you set a radio button as required using jQuery .attr('required', true)
and then try to set it as not required with .attr('required', false)
, then the radio button will still be required and will prevent the form from submitting -- even though the required property claims to be false
! (See jQuery ticket.)
This can be a serious problem when there are radio buttons in your form that you need to toggle between required and optional based on other fields in your form.