When I click on the following code, the page moves up at the top. How can I keep the current width/ height and not move the user at the beginning of the page?
<script type="text/javascript">
$(document).ready(function () {
$("#click").click(function() {
//some things in here
});
});
</script>
Navigating to the top is the default behaviour of such a link, and can be prevented by calling
e.preventDefault(), whereeis the jQuery event argument: