jQuery callback in .hover callback -


After hiding the element outside of the mouse I am trying to remove an add element. What have I done with callback in callback?

  // start of $ (document) .ready (function () {$ (document) .ready (function () $ ('.custom-right-box a'). Function () {$ (this) .append ('& lt; div class = "click-here" & gt; & lt; b & gt; Click & lt; / b & gt; & lt; span & gt; ($ Width: '88px', height: '58px', margin lift: '-44px', & quot; here & lt; / span & gt; & lt; / div & gt; '); $ (' click -here '). Margin Top:' -40px '}, {duration: 300});}, function () {$ ('. ') .pause (). Animate ({width:' 0px ', Height: '0 pixels', margin lift: '-0px', margintop: '-0px'}, {duration: 300}), function () {$ (click. ();}}}} // $ OFIN (document) .ready (function () {});    

In your code fixes:

 }, {duration: 300}), // -> Remove this console task ( $ {'Click-here'). Remove ();}; // Add a parane here, like}};   

As you passed the third parameter to animate () , which is the callback function, made up of notable changes and try it out.

This will be the correct version:

  // $ START OF $ (document) .ready (function () {$ (document)) .ready (function () { $ ('.custom-right-box a'). Hover (function () {$ (this) .append ('& lt; div class = "click-here">  & lt (Span & gt; here & lt; / span & gt; & lt; / div & gt; ';); $ (Click. Click-';);); (Animate: {width: 88px ', height:' 58px click & lt; / b & gt; ', margin lift:' -44px ', margin top:' -40px ', {duration: 300})}}, function () {$ ('.'). Stop (). Animate ({width: '0px', height: '0 pixels', margin lift: '-0px', ma Virgin Desktop: '-0px'}, {duration: 300}, function () {$ ('.'). Remove ();});}); // $ (document) end.ready (function () {});    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -