overhang.js
overhang.js copied to clipboard
how to close the overhang programmatically (in JS)
Hi folks, how would I use jquery to programmatically close an overhang that is already open by clicking anywhere on the overhang itslef. I'm doing the below ( 1. finding the overhang by its class, and 2. creating a click event on overhang's close button), and while its working I suspect its a poor method since its throwing some jquery errors and its not very elegant.
$('.overhang-overrides').on('click', function(event){ $('.overhang-close').trigger('click'); });