Enable/Disable radio buttons
I have a questionnaire on our website that we use to identify where our visitors found our site.
The questionnaire takes the form of 15 or so radio buttons, one of which has to be checked in order to proceed.
They all have different "names" but currently their "id's" are all the same as I use some PHP coding to scan which one has been selected and put the answer in a database.
The questionnaire is at the bottom of the form and I don't want these radios enabled until the visitor has filled in the rest of the form.
How do I enable/disable the entry to these without changing the "id's" of them to all unique id's ? Currently they all have "id=Advert"
If I enable/disable them using:
document.getElementById("Advert").disabled = true
then only the first one in the series gets changed.
Has anyone got a solution to this for me please?