Skip to content

Instantly share code, notes, and snippets.

@codename065
Created April 14, 2022 07:39
Show Gist options
  • Save codename065/334271a0e674c5da4db03110afac6c53 to your computer and use it in GitHub Desktop.
Save codename065/334271a0e674c5da4db03110afac6c53 to your computer and use it in GitHub Desktop.
toggle
<script>
jQuery(function($){
$('body').on('click', '.btn-clps', function(e){
e.preventDefault();
$($(this).attr('href')).toggleClass('show');
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment