> Change the span to a div and try again - scripting on top of a broken
> DOM is not reliable.

Thanks Klaus but it doesn't seem to make any difference.

Here's some code, I know I am probably doing something simple, I'm not
overly fluent as yet!

$("div.tags").click(function() {
    $(this).html("<a href=\"index.php\" class=\"resetme\">Test</a>");
});

$("div.tags > a").click(function () {
    alert("help");
    return false;
});

Before jQuery runs the html is:
<div class="tags">school yearbook<a href="" class="resetme">Test</a></div>

The link is there to test, it works before you click the div, but the
new link doesn't activate the .click() function and I don't know why!
Basically jQuery is ignoring it.

Thanks

Simon

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

Reply via email to