Hi, i m jamal, i taken to you to excuse my English.
My probleme is : when i generate dynamaically the html , jquery event
don't work.
My script php index.php witch receiced a code html via ajax by another
script recup.php like this :
* Turquie Supprimer <javascript:void(0)>
*
the jquery code included in header of index.php .
$(".del_voyage").click( function(){
alert ("clicked");
var id = $(this).attr("title");
var choix = $(this).attr("href") ;
alert (id+choix);
});
...
code html returns by recup.php.
$html="<div id='mesvoyages'><ul>";
foreach($lib_voyages as $k=>$v){
$html.="<li><span class='lib_voyage'>".$v."</span> <a
href='javascript:void(0)' title='".$k.$choix."'
class='del_voyage'>Supprimer</a></li>";
}
$html.="</ul></div>";
return $html;
Thanks!
-Jamal
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/