On 23/01/2007, at 9:56 PM, Roberto Ortelli wrote:

>  <script type="text/javascript">
>        $(document).ready(function(){
>
>
>                $("#trigger").click(function(){
>                        $("#content").append('<a href=""
> class="test">click does not work</a>');
>
>                                                $(".test").click(function(){
>                                       alert("yeepee");
>                                                       return false;
>                                        });
>
>                        return false;
>                });
>        });
>  </script>

This works. Just bare in mind that if you click your #trigger link  
more than once it means you are attaching the click behaviour of  
the .test element each time. Therefore if you click #trigger four  
times then press the first .test element that appeared you would get  
four alert messages.

Good luck.
Joel.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to