Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery not working in live Wordpress site
    primarykey
    data
    text
    <pre><code>jQuery(document).ready(function(){ jQuery(window).scroll(function(){ if (jQuery(this).scrollTop() &gt; 600) { jQuery('.scrollup').fadeIn(); } else { jQuery('.scrollup').fadeOut(); } if(jQuery(this).scrollTop() &lt; 600) { jQuery('.scrolldown').fadeIn(); }else { jQuery('.scrolldown').fadeOut(); } }); jQuery('.scrollup').click(function(){ jQuery("html, body").animate({ scrollTop: 0 }, 900); return false; }); jQuery('.scrolldown').click(function() { jQuery("html, body").animate({ scrollTop: jQuery(document).height()-jQuery(window).height() }, 900); return false; }); }); </code></pre> <p>I tried this code for the page scroller for on a Wordpress site. It works when I run from localhost not on the live site. Why isn't it working on the live site?</p> <p>I get this error on the Javascript console (via Firebug):</p> <pre><code>TypeError: invalid 'in' operand e [Break On This Error] ...pe);return e}x.each({parent:function(e){var t=e.parentNode;return t&amp;&amp;11!==t.node... jquery.min.js (line 5) TypeError: invalid 'in' operand e [Break On This Error] ...pe);return e}x.each({parent:function(e){var t=e.parentNode;return t&amp;&amp;11!==t.node... jquery.min.js (line 5) TypeError: invalid 'in' operand e [Break On This Error] ...pe);return e}x.each({parent:function(e){var t=e.parentNode;return t&amp;&amp;11!==t.node... jquery.min.js (line 5) TypeError: invalid 'in' operand e [Break On This Error] ...pe);return e}x.each({parent:function(e){var t=e.parentNode;return t&amp;&amp;11!==t.node... jquery.min.js (line 5) TypeError: invalid 'in' operand e [Break On This Error] ...pe);return e}x.each({parent:function(e){var t=e.parentNode;return t&amp;&amp;11!==t.node... jquery.min.js (line 5) TypeError: invalid 'in' operand e [Break On This Error] ...pe);return e}x.each({parent:function(e){var t=e.parentNode;return t&amp;&amp;11!==t.node... jquery.min.js (line 5) TypeError: invalid 'in' operand e [Break On This Error] ...pe);return e}x.each({parent:function(e){var t=e.parentNode;return t&amp;&amp;11!==t.node... </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload