I'm currently using images in place of radio buttons:
<label class="radio-inline thumbs"><input type="radio" id="type_nee" name="type" value="nee" onkeyup="validate()" onclick="validate()"> <img src="assets/images/basis.png" height="75"> </label>
<label class="radio-inline thumbs"><input type="radio" id="type_ja" name="type" value="ja" onkeyup="validate()" onclick="validate()"> <img src="assets/images/bottom.png" height="75"> </label>
The radio button is hidden using the following CSS:
input[type=radio]:not(old){
width : 28px;
margin : 0;
padding : 0;
opacity : 0;
}
To make the image transparent, this CSS is used:
.thumbs{opacity:0.5;}
I want to remove the opacity when the image (radio button) is clicked. What CSS selector should I use? I have already tried
.thumbs:active{opacity:1;}
and
.thumbs:checked{opacity:1;}
However, these attempts did not work. Any suggestions on how to remove the opacity filter when the image (radio button) is checked?