Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

use check box to toggle content

/*
<input type="checkbox" name="mycheckbox" id="mycheckbox" value="0" />
<div id="toggle-content">
This content should appear when the checkbox is checked
</div>
*/


#toggle-content{
display:none;
}
#mycheckbox:checked ~ #toggle-content{
  display:block;
  height:100px;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #box #toggle #content
ADD COMMENT
Topic
Name
3+1 =