Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to create a general organizational chart. I want to show the staffs under the team leads in a simple modal through image mapping. My mapping isn't functioning, but the modal is there. Anyone can tell what is wrong in my codes and help me resolve it?

What I have tried:

Script:

<script>
$("#Athan").on("click", function(e){
// e.preventDefault();
// alert('test');
$('#modalAthan).modal('show');
</script>

Image mapping for Athan:
<img src="Organizational Chart.PNG" alt="" usemap="#map" />
<map name="map">
<area shape="rect" coords="7, 488, 205, 561" id="Athan"/>
</map>

Modal button:
<button type="button" class="btn btn-info btn-link" data-toggle="modal" data-target="#myModal" >
<area shape="rect" coords="7, 488, 205, 561"/>
</button>
Posted
Updated 22-Mar-16 5:44am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900