Instead of `javasript:void(0);` in your href, do '#', then in your event handler use [preventDefault()](https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault)