My question involves an empty link:
<a href="#" id="stop-point-btn">+ add stop-point</a>
This link is connected to a JavaScript function:
$("#stop-point-btn").bind("click", addStopPoint);
The JS function simply inserts content into a specific div:
function addStopPoint() {
$("#stop-point-content").append(stopPointHtml())
}
When I click on the link, it scrolls me back to the top of the page due to the empty # value. Is there a way to prevent this scroll movement and maintain my current scroll position on the page?