javascript - Adding slide effect by anchor tag -


i want open searchpage.html html page slide effects used anchor tag.

<a id="add" href="searchpage.html" class="show_hide">click</a> 

and js:

 $(document).ready(function () {         $('.show_hide').click(function (e) {             e.preventdefault(); //to prevent default action of link tag             $(this).toggle('slide','left',100);         });  }); 

but showing error:

typeerror: jquery.easing[this.easing] not function 

try one, may you..

html :

<a id="add" href="searchpage.html" class="show_hide">click</a> 

js:

$(document).ready(function () {     $('.show_hide').click(function (e) {         e.preventdefault(); //to prevent default action of link tag         $('#add').slidetoggle(1000);     }); }); 

and here demo.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -