<div>
<input type="checkbox" id="condition">
</div>
<div>
<div condition="true">condition</div>
<div condition="false">condition</div>
</div>
<div>
<input type="checkbox" id="condition">
<div condition="true">condition</div>
<div condition="false">condition</div>
</div>
div[condition] {display: none;}
#condition:checked ~ div[condition="true"] {display: block;}
#condition:not(:checked) ~ div[condition="false"] {display: block;}
<div>
<input onclick="hideCondition(event)" type="checkbox" id="condition">
</div>
<div>
<div condition="true">condition</div>
<div condition="false">condition</div>
</div>
function hideCondition(e) {
$('div[condition]').hide();
if (e.target.checked) $('div[condition="true"]').show();
}