Thank you for your help Chris !

I try this but it doesn't work.

this is  the html generated

<div id="mesenvies">
   <ul>
       <li>
           <span class="lib_voyage">Argentine</span>
<a href="javascript:void(0)" title="1envie" class="del_voyage">Supprimer</a>
       </li>
       <li>
           <span class="lib_voyage">Autriche</span>
<a href="javascript:void(0)" title="2envie" class="del_voyage">Supprimer</a>
       </li>
       <li>
           <span class="lib_voyage">Bahamas</span>
<a href="javascript:void(0)" title="3envie" class="del_voyage">Supprimer</a>
       </li>
   </ul>
</div>


and this is  jquery code

$("a").bind("click", function(event){
           event.preventDefault();
             alert("ok");
             var id         =     $(this).attr("title");
           alert (id);
   });


Chris Domigan a écrit :

Jamal, you need to rebind events to elements after updating them via ajax.

------------------------------------------------------------------------

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


--
Jamal Arbib
Responsable technique - monagence.com
[EMAIL PROTECTED]
01 46 21 80 27

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to