Robert Granlund
asked on
Jquery Function Scroll To
I have a JQuery function that closes a <div>
Any suggestions?
$(document).ready(function() {
$('input[type="button"]').click(function() {
if ($(this).attr("value") == "custom-done") {
$("#custom-hidden").hide('slow');
}
});
HTML:::
<input id="edd-purchase-button" class="edd-submit gray button" type="button" value="custom-done" name="done-customizing">
Currently when I click the button, it scrolls to the bottom of the page. I want to scroll to the top of the page when I click the button.Any suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.