SCROLLBOTTOM JS NOT WORKING IN FIREFOX, CHROME, SAFARI

marcel ethan

Total Post:105

Points:735
Posted by  marcel ethan
 1933  View(s)
Ratings:
Rate this:
Hi Mindstickians!

I've used scrollbottom javascript with JQuery (1.3.2/jquery.min.js) to scroll to a particular div in the below of the page. It is working fine in IE 8 & 9 but it this 

functionility is not working in Firefox, Chrome, Safari. I mean scrolling functionality is working but the div text is not showing. I used like:

<a href="#about">About Us</a>   Top div

<a name="about">Description</a>  Bottom div
Any idea to make it workable in Firefox. Appreciate for your kind advice. 

Thank you.

  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: Scrollbottom js not working in Firefox, Chrome, Safari

    Hi Marcel!


    Try as following!

    I don't see in the Fiddle above the code for scrolling down, but you can try like in this Fiddle. But that's correct, you should use the latest jQuery version.

    What I added in the JS:

    $('#firstdiv').on("click", function(){
        $('html, body').animate({"scrollTop" : $(document).height() - $(window).height()});
    });

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!