change background color using radio button javascript





Im trying to change the background color using radio buttons. The javascript function seems to not be working. I already read through the other questions written here, none of those answers seemed to work. Javascript Tutorial Button Access form button with its name through doReturn false in form button click event to Use Image as the submit button in JavaScrip problem:"it only change background color into blue".Youre using assignment () instead of comparison () in the if statements.Powered by Discourse, best viewed with JavaScript enabled. Why is this JavaScript not changing the div tags background color?Javascript: How can I get a button to change the forms action? How can an HTML element be clickable without using or