Christian Bach wrote:
> This can be a bit tricky, since there is no document.append event.
>
> Here is how i usually do it.
>
> <script>
> $(function() {
> doStuff();
>
> $("div").click(function() {
> // append a link to the document
> $("body").append('<a href="#">test</a>');
> doStuff();
> });
> });
>
> function doStuff() {
> $("a").click(function() {
> alert('a link has been pressed');
> });
> }
> </script>
I try something same, but if I make this if click on a link it fired two
times.
--
Ámon Tamás
http://linkfelho.amon.hu
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/