Removing id attribute to link from url

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email

HTML CODE

<a class="btn-click" href="#services-link">OUR SERVICES</a>

jQuery Code


jQuery(document).ready(function($) {
    $(".btn-click").click(function(event) {
    event.preventDefault();
    $('html,body').animate( { scrollTop:$(this.hash).offset().top } , 1000);
    } );
  } );

Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert