can i have an onclick event on a imagemap area element

前端 未结 7 1164
死守一世寂寞
死守一世寂寞 2020-12-03 09:52

I would like to put an onclick event on an area element. Here is my setup:



        
7条回答
  •  爱一瞬间的悲伤
    2020-12-03 10:32

    Based on your comments, you just need this:

    $("#image").click( function(){
     alert("clicked");
    //your code here
    });
    

    Demo:

    http://codepen.io/tuga/pen/waBQBZ

提交回复
热议问题