insitevision
New Member
Hi,
Instead of the standard radio button I want to use images to select an option.
So, I created a radiobutton element with 2 options and in the label field I entered the path to the image to show.
Now the form shows the radio as well as the image. I can hide the radio with CSS so only the image is shown but now, when an image is clicked I want the other image (the one NOT selected) to have a opacity of 0.4.
I think this can be done by javascript but (I know, due to lack of knowledge) I cannot find out how to achieve this. Can anyone put me in the right direction?
Kind regards,
Eric
Instead of the standard radio button I want to use images to select an option.
So, I created a radiobutton element with 2 options and in the label field I entered the path to the image to show.
Now the form shows the radio as well as the image. I can hide the radio with CSS so only the image is shown but now, when an image is clicked I want the other image (the one NOT selected) to have a opacity of 0.4.
I think this can be done by javascript but (I know, due to lack of knowledge) I cannot find out how to achieve this. Can anyone put me in the right direction?
Kind regards,
Eric