Skip to content

Instantly share code, notes, and snippets.

@noahub
noahub / collapsible_section.js
Last active October 27, 2021 20:24
Create a collapsible page section
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script>
//Replace with ID of your collapsible page section
var toggleSection = $('#lp-pom-block-9');
//Replace with ID of box containing hidden/visible content
var toggleContent = $("#lp-pom-box-16");
//Replace with ID of button that toggles section
var toggleButton = $("#lp-pom-button-14");
// Height of section to show/hide