Menu
I have radio buttons on a page sharing the same ID…
I want a function like this:
function check(elementName){
for (x=0; x < elementName.size; x++){
//loop through the radio buttons to see if something is checked.
}
//if nothing was checked, return an error, otherwise don’t.
}
I want a function that reads in the ID of the radio buttons, does a loop based on how many radio buttons of that ID are on the page, loops through to check if something is checked…
Any help on accomplishing this?
dep