I am toggling a div using jquery. when this div appears on page my browser scroll bar goes to top, even i am on last of my page. can you help me to stop this scroll where it is even more and more divs appears on page using jquery
i shall be thank full
I assume the link which is being clicked that controls the div toggle is set as
href="#". If this is the case, addpreventDefault()to the jQueryclickevent handler to stop the link behaviour from making the page scroll to the top.