I'm trying to make a single function to modify the background in several form elements (Select Lists, Textboxes, etc.) I'm passing in the names of two form elements (the radio button group name, and the select list to modify the background, as well as the radio button number that should affect the change.)
This is the line where the error is: if (RB.checked)
Here's my attempt at the function:
var RB = document.getElementById(objRB);
var SEL = document.getElementById(objSEL);
... and, I'm trying to call it in the onClick event of the click of any button in the radio group, so I added this to each button:
Any help will be appreciated!