jquery - Element popup and disappears -
i have used jquery toggle function element. every time load page element pops , disappears.
my code here:--
$(document).ready(function(){ jquery("#button").toggle(function(){ jquery("#feedback_form").animate({right:"0px"}); }, function(){ jquery("#feedback_form").animate({right:"-362px"}); return false; } ); //toggle });
the button element appears , disappears. cant click it.
i've done little bit different original code:
js:
$("#button").click(function(){ $('#feedback_form').toggleclass("move"); });
css:
.move{ right:-362px !important; }
here fiddle:
Comments
Post a Comment