title: Change class of an anchor when scroll is on a div using jquery
body: <p>I am making a webpage which has anchor button on the top linking to different divs on the webpage, I want to change the background color of the button when the scroll is on that div and keep that color until it reaches the subsequent section.How can i use toggleClass in this ?</p>