Scroll Top
<p id="back-top"><a href="#top"><span>Back to Top</span></a></p> <!-----scroll top---include the js file if its needed> <script> jQuery(document).ready(function(){ // hide #back-top first jQuery("#back-top").hide(); // fade in #back-top jQuery(function () { jQuery(window).scroll(function () { if (jQuery(this).scrollTop() > 300) { jQuery('#back-top').fadeIn(); } else { jQuery('#back-top').fadeOut(); } ...