hello!
 
i'm developing a website where a div gets updated via an ajax call: that new 
content contains Anchor elements with a class="tag"
 
Now, i have a specific behavior planned for these a.class elements, but it does 
not happen. Even having just an alert() does not work.
 
i think this is due to the fact taht when $(document).ready() is performed, 
these a.tag do not exist yet, so the behaviour is not attached to them.
 
Is there a solution to this? i tried returning the javascript behaviour along 
with the ajax output, but that doesn't work.
 
 
here is the sample behaviour:
 
 $("a.tag").bind("click", function(){
   alert("hi");
   return false;
 });
 
 
 
thank you for your advises !
 
 
Alex

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.472 / Base de données virus: 269.8.11/838 - Date: 7/06/2007 14:21
 

Reply via email to