L1® Model 1S FAQ: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 49: | Line 49: | ||
$(this).toggleClass("open"); | $(this).toggleClass("open"); | ||
}); | }); | ||
$("#showAll").click(function(event){ | |||
$("h3").addClass("open") | |||
.next().show(); | |||
$("#hideAll").removeProp("disabled"); | |||
}); | |||
$("#hideAll").click(function(event){ | |||
$("h3").addClass("closed") | |||
.next().hide(); | |||
$("#showAll").removeProp("disabled"); | |||
}); | |||
}); | }); | ||
| Line 56: | Line 70: | ||
<div id="page_content"> | <div id="page_content"> | ||
<h2>FAQ </h2> | <h2>FAQ </h2> | ||
<button id="showAll">Show All</button><button id="hideAll">Hide All</button> | |||
<div class="faq" id="tree_view"> | <div class="faq" id="tree_view"> | ||
<div class="tree"> | <div class="tree"> | ||