Estoy tratando de evitar que la página salte al hacer clic en un enlace.
ACTUALIZACIÓN DE CÓDIGO
$(document).on("click", "#mapbase" , function(e) { e.preventDefault(); id = window.location.hash.substring(1); $('.map_tabs').attr("style", "display:none"); if ( $('.map_tabs#' + id).length ) { $('.map_tabs#' + id).attr("style", "display:block"); } else { $('.map_tabs#contact-us').attr("style", "display:block") $('.map_tabs#contact-us h2').text(id + ' Projects Coming Soon'); } }); Intenté agregar e.preventDefault() pero no detiene el salto de página.