Jump to content

Change Image On Radion Button Selection


depdivr

Recommended Posts

I am using code to change an image based on a combobox and it works well. However I want to use a similar code to change an image when a radio button is selected. I am a little stumped on how to do this. I am thinking that I use the onchange() command but am not sure if this is the right path or not any suggestions?

Link to comment
Share on other sites

I've never used onchange on radio buttons but always onclick, go ahead and try it, the principle should be the same, get the value from rad button that is the image file name, and use that to change the src of img (or background-image of element) tag to show that image.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...