Is there a way to simultaneously trigger two events by clicking the "Past Locations" link on the right side navigation? I want it to jump to the bottom of the page to the "Past Locations" section and also display a default image map (Indianapolis map) at the same time.
Currently, it successfully jumps to the bottom of the page, but the image map disappears - leaving the placeholder empty.
In the HTML code snippet below, the other two working links route to image maps:
<li class="j_linkHover">
<a href="#mapCO-asp" class="j_linkThumb">Aspen, CO</a>
<p class="j_accordion-panel"><span class="j_dateLocation">Central Regions<br>May 29 - June 3</span></p>
</li>
<li class="j_linkHover">
<a href="#mapOR" class="j_linkThumb">Salem, OR</a>
<p class="j_accordion-panel"><span class="j_dateLocation">Oregon School for the Deaf,<br>Washington School for the Deaf, <br> Non-Profit Community Event<br>June 3 - 6</span></p>
</li>
<li class="j_linkHover">
<a href="javascript: document.body.scrollIntoView(false);" id="location-color" class="j_linkThumb is-active">Past Locations</a> <--- jumps to the bottom, but cannot route image map at the same time
</li>
The JavaScript function provided below routes image maps in the placeholder:
$(document).ready(function(){
//Default Action
$(".mapActive").css({'display':'none'});
$("ul.j_linkLocation li#mapIN").addClass("active").show(); //Activate first tab
$(".mapActive#mapIN").show(); //Show first tab content
//On Click Event
$("ul.j_linkLocation li").click(function() {
$("ul.j_linkLocation li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".mapActive").css({'display':'none'}); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn('fast'); //Fade in the active content
return false;
});
});
https://i.sstatic.net/pBF8W.jpghttps://i.sstatic.net/4wJzi.png