Bug Tracker

Ticket #5681: jquery-clone.html

File jquery-clone.html, 387 bytes (added by andri, 3 years ago)
Line 
1<html>
2        <head>
3                <script type="text/javascript" src="jquery-1.4a2.js"></script>
4                <!--<script type="text/javascript" src="jquery-1.3.2.js"></script>-->
5                <script type="text/javascript">
6                        $(function() {
7                                $("#src").click(function() { $(this).text("clicked"); });
8                                $("#src").clone(true).appendTo("body");
9                        });
10                </script>
11        </head>
12        <body>
13                <div id=src>foo</div>
14        </body>
15</html>