Simon Corless schrieb:

> 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.

Ohohoho, i can help ;)

<script type="text/javascript" src="jquery-latest.js">
</script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
   $("div.tags").click(function() {
     $(this).html("<a href='index.php' class='res'>dynamic</a>");
       $(".res").click(function () {
         alert("help");
         return false;
       });
    });
});
//]]>
</script>
   </head>
   <body>
   <div class="tags">school yearbook <a href="#" 
class="resetme">static</a></div>

tested in IE7 +FF2

-- 
Viele Grüße, Olaf

-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------

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

Reply via email to