Example 1 — Dynamic Children
Click a paragraph to append another — new ones stay clickable.
$("body").delegate("p", "click", function () {
$(this).after("Another paragraph!
");
}); How It Works
- Bind. One handler on
bodyfor clicks fromp. - Match. jQuery checks the bubbled target against
"p". - Act.
thisis the clicked paragraph; append a sibling.

