Target a checkbox status using css
I need to display the section based on the chckbox..for that i write through css
input[typ开发者_运维知识库e = "checkbox"]:checked .sec-visible{ display : block; }
its working on ff, but not working on ie..any solution?
You have the selector a little muddled, you need to select the input with its class then the type:
input.sec-visible[type="checkbox"]:checked
Example here.
精彩评论