what im attempting:
- On page load hide all elements
- on change of checkbox toggle show/hide of element
css:
.hide{
display: none;
}
markup:
<form id="checkThis">
<input type="checkbox" data-target="hide1" class="ck">check1</input>
<input type="checkbox" data-target="hide2"class="ck">check2</input>
</form>
<div id="theHidden">
<div id="hide1" class='hide'>Im Hidden On Page Load</div>
<div id="hide2" class='hide'>Im Hidden On Page Load Too</div>
</div>
Fiddle for edited question: http://jsfiddle.net/1tx18jcy/