why is this not working?
<script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function(){ if( jQuery(".page").height() < jQuery(window).height() ) { jQuery(".backtop").hide(); } else { jQuery(".backtop").show(); } }); </script> I'm using two frameworks, mootools and jquery. I don't know how to use mootools and it must be there. I know a little of jquery and just want the "back to top" button to appear when the body (.page) is bigger than the window.
Can anybody help me???
EDIT: CAN ANYONE GIVE ME A MOOTOOLS SIMILAR SCRIPT?????
if(jQuery(document).height() < jQuery(window).height()) { ... }?console.log())jQuery(".page").height()andjQuery(window).height()OR create a test page with Mootools removed. There's a slight but possible chance of a conflict between the two libraries.