Skip to main content

Bug Tracker

Side navigation

Ticket #5681: test-5681.html


File test-5681.html, 0.3 KB (added by dmethvin, December 20, 2009 02:59AM UTC)

Works if no duplicate id

<html>
	<head>
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.4a1.js"></script>
		<script type="text/javascript">
			$(function() {
				$(".test").click(function() { $(this).text("clicked"); });
				$(".test").clone(true).appendTo("body");
			});
		</script>
	</head>
	<body>
		<div class="test">foo</div>
	</body>
</html>

Download in other formats:

Original Format