title: JS Error Uncaught TypeError: Cannot read property 'top' of null
body: <p>I have added scrolling on my page. Below is my code </p>
  
  <pre><code>jQuery(function(){
  jQuery('.display-center a').click(function(e){
          e.preventDefault();
          var section=jQuery(this).attr('href');
          jQuery('html, body').animate({
      scrollTop: jQuery(section).offset().top-100
  }, 1000);
  
          });
  });
  </code></pre>
  
  <p>IT gaves Uncaught TypeError: Cannot read property 'top' of null. Please help me anyone</p>