can I use name attribute instead of Id that you used for selection of checked or unchecked?
Hi there vngx,
I don’t thinks so.
But you could use…
<style media="screen">
input[value="Yes"]:checked ~ #highSchool {
display:block;
}
#highSchool{
display:none;
}
</style>
…if that would be acceptable to your requirements.
Of course, if you remove the “for=” from the labels and the “ids”
from the inputs then the text will no longer activate the radios.
coothead
You might. Try combine/chain two attributes like this jsfiddle:
input[name="userHighSchool"][value="yes"]:checked ~ #highSchool{
display:block;
}
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.