Tag Archives: scrall

Scroll To DIV – Using Button ID

template-file.php


<button type="button" id="btnscrall" value="scrall">SCRALL</button>

default.js


jQuery("#btnscrall").click(function() {
jQuery('html, body').animate({
scrollTop: jQuery(".caseresult").offset().top
}, 2000);
});

Advertisements
%d bloggers like this: