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
Post a Comment