Je voudrais remplacer " selector " par un paramètre sur le on click du #selector, en fait ce serait un truc style ( onclick=param=id_du_selector ) et récupérer param dans $("#selector").on("click",function(){, ou selector serait param
pouvez vous m'aider ?
par avance merci
amicalement, Rick
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <script> $(document).ready(function(){ $("#selector").on("click",function(){ $("#selector").fadeIn(); $("#selector").css({top: 0, left: 0, position:'absolute'}); $("#selector").css('z-index', 2); }); $(".btn1").click(function(){ $("#selector").fadeOut(); }); }); </script> <map ...> <area coords="242,763,71" shape="circ" href="#" Id="selector" alt="Stan" target="_self" onmouseover="window.status='Stan Lee ?';return true;" onclick="param=$this.id">
Partager