Is there a well-known mistake I could be making here?
I\'ve got a script that\'s using .on() because an element is dynamically generated, and it isn\'t working. J
This works:
Click Me $(document).on("click","#test-element",function() { alert("click"); }); $(document).on("click","#start-element",function() { $(this).attr("id", "test-element"); });
Here is the Fiddle