Here is my HTML
<div class="test" onclick="this.querySelector('.rad').checked=true;">
<input type="radio" class="rad" name="rad" />
<div>hello</div>
</div>
<div class="test">
<input type="radio" class="rad" name="rad" />
<div>hello1</div>
</div>
CSS
.test input:checked ~ div {
color: #3498DB !important;
}
This is working fine in desktop browsers and also with user-agent but when I test it on Android devices it is not working. Tested version in Android 4.0+. Someone please tell me how can I fix this?
Note : used onclick instead of ontouchend to post code here