My code:
document.querySelector('input[name=fos_user_registration_form[gender]]:checked')
it doesn't work because of [gender].
Do you have an idea to select this type of input ?
My code:
document.querySelector('input[name=fos_user_registration_form[gender]]:checked')
it doesn't work because of [gender].
Do you have an idea to select this type of input ?
Quote the attribute to allow special characters inside.
document.querySelector('input[name="fos_user_registration_form[gender]"]:checked')