Hi there,

I'm trying a very simple (in my opinion) use of jQuery, but I can't
figure how I am suppose to make it work.
Can someone explain me how enabling the click event on .test even if
the .test element is loaded dynamically from script (ajax doesn't work
neither) ?

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

Thank you,

Laurent

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

Reply via email to