How do you do this from a link on the page (i.e. not the moving button seen here)?

1 answer


The easiest way is to trigger the click event of the original toggle, i.e. $(".btn-slide").click();

This snippet should do it for you:

<a class="another-toggle">Click this too!</a>
<script type="text/javascript">
    jQuery(function($) {
Answered about 8 years ago by Justin Hileman
  • Thanks, I'll give that a go! Liam Brazier about 8 years ago