I have
<script>
$(document).ready(function() {
$("#closesrch").click( function (e) {
e.stopPropagation();
$(this).parent().parent().hide();
});
$("#basemaplink").click( function () {
$(".maplist").toggle('fast');
});
});
</script>
<div class="searches">
<div class="advsearch">
<a href="#" id="closesrch"><img src="images/icon_close.png" alt="close"></a>
ADVANCED PROPERTY SEARCH
</div>
Contents here...
</div>
<div class="basemapdiv">
<a href="#" id="basemaplink"><img src="images/btn_basemap.png" alt="basemap" class="basemapbtn"></a>
<div class="maplist" style="display:none;">
Contents here...
</div>
</div>
When the links are clicked it performs the show / hide functions but scrolls to top of the page because of
<a href="#"></a>
What should be modified to prevent page scrolling?
Thank you,