[jQuery] Re: Dynamically created elements do not trigger event handlers

2007-07-06 Thread Scott Sauyet
[EMAIL PROTECTED] wrote: I tried the other way, adding to $(document).ready this test: $('body').click(function(event) { if ($(event.target).is('[EMAIL PROTECTED]')) { alert("You clicked a default"); return d

[jQuery] Re: Dynamically created elements do not trigger event handlers

2007-07-06 Thread [EMAIL PROTECTED]
Seems that the Drupal installation for plugins are down, so I cannot access the behavior this time. I tried the other way, adding to $(document).ready this test: $('body').click(function(event) { if ($(event.target).is('[EMAIL PROTECTED]')) {

[jQuery] Re: Dynamically created elements do not trigger event handlers

2007-07-05 Thread Scott Sauyet
[EMAIL PROTECTED] wrote: Is it a fact that dynamically created content cannot trigger JS events? No. The problem is that the binding is done on specific items and not on some abstract class of items. When you later add items, they don't have your particular bindings associated with them.