Removing id attribute to link from url

Share Now

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);
    } );
  } );

Picture of Nahid Mahamud

Nahid Mahamud

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