title: scroll to section(id #one) add active class class jquery
body: <p>here is my jQuery Code
  and here is my web page url: <a href="https://ipconsultingfirm.com/home/" rel="nofollow noreferrer">https://ipconsultingfirm.com/home/</a></p>
  <pre><code>jQuery(window).scroll(function(){
       if(jQuery(window).scrollTop() &gt;= jQuery(&quot;#one&quot;).offset().top + jQuery(&quot;#one&quot;).height() || jQuery(window).scrollTop() &lt; jQuery(&quot;#one&quot;).offset().top){
          jQuery('#one').removeClass('active');
        }
        else{
              jQuery('#one').addClass('active');
        }
                          
  });
  </code></pre>