Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section class="main-content">
- <section class="resultwrap"></section>
- <section class="filterwrap"></section>
- </section>
- $('html').on('click', '.backtoparam', function(e) {
- console.log('returnToFilter');
- e.stopPropagation();
- e.preventDefault();
- $('.resultwrap').hide();
- $('.filterwrap').fadeIn(300);
- return false;
- });
- <div class="main-content">
- <section class="resultwrap">
- One
- </section>
- <section class="filterwrap">
- Two
- </section>
- </div>
- <a class="backtoparam" href="#">Link</a>
- <script>
- $(document).on('click','.backtoparam',function(){
- $('.resultwrap,.filterwrap').toggle();
- return false;
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement