Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72443

scroll to a div element with using javascript

$
0
0

i know there are some topics for this problems...

whatever i try i could not handle it...

first of all i am a wordpress user and installed a wcfm marketplace plugin... i suppose that for some reasons they ignored javascripts in store listing pages therefore when you try to reach mobile browser then filter pages is located bottom of the page...and this is not good for user experience so i decided to make a something that scrolling to the filters div section when they clicks to the filters button.

$(".woodmart-filter-buttons").ready(function(){
$("html, body").delay(2000).animate({
    scrollTop: $('#wcfmmp-store-product-search-5').offset().top 
}, 2000);
});

i tried this code for achive my goal but it did not worked.

Thanks for your helps.


Viewing all articles
Browse latest Browse all 72443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>