Skip to content

Instantly share code, notes, and snippets.

@misskillingsworth
misskillingsworth / collapsible_section.js
Last active January 20, 2018 17:07 — forked from noahub/collapsible_section.js
Create a collapsible page section
<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
var sectionHeight = $(toggleSection).height();