Home › Forums › WoodMart support forum › scroll to with javascript is not working › Reply To: scroll to with javascript is not working
December 24, 2019 at 9:31 am
#164822
captain53
Participant
var tab2312 = document.getElementByClassName(“woodmart-filter-buttons”);
var gogilter2312 = document.getElementById(“wcfmmp-store-product-search-5”);
tab2312.onclick = function() {
gogilter2312.scrollIntoView;
}
i tried this code for wcfm store page to help user experience… my goal is when someone is click to the filters tab then he/she scroll to the filters section.