Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<div id="a" class="hidden" />
<div id="b" class="hidden" />
<div id="c" class="hidden" />
<div id="d" class="hidden" />
$(function(){
$('div.hidden').hide();
//or $('div.hidden').show();
});
<div id="a" name="hidden" />
<div id="b" name="hidden" />
<div id="c" name="hidden" />
<div id="d" name="hidden" />
<div id="e" name="Nothidden" />
function hide_hidden_divs(){
var divs=document.getElementsByName('hidden');
var x="";
for(x in divs){
if(divs[x].style.display=='block' || divs[x].style.display==''){
divs[x].style.display=none;
}
else{
divs[x].style.display='block';
}
}
}
<input value="Hide" title=""
class="radio" id="check20" name="check2[]" type="checkbox" [red]onClick="hide_hidden_divs();"[/red]>
<input type="checkbox" [red]name="button1"[/red] onClick="myfunction(this);">
...
<input type="checkbox" [red]name="button2"[/red] onClick="myfunction(this);">
Then in the function:
function hide_hidden_divs(mycheck){
if(mycheck.name=='button1'){
[green]//code to hide one set of divs or even a call to a function to hide the divs[/green]
}
if(mycheck.name=='button2'){
[green]//code to hide another set of divs or call to function[/green]
}
}