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:

https://jsfiddle.net/g2hncbdu/5/


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -