Skip to main content

Bug Tracker

Side navigation

Ticket #4838: TestId.html
File TestId.html, 0.3 KB (added by Lance, July 01, 2009 02:39PM UTC)
<html>

<head>
	<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
</head>

<body>

	<div id="my|div">
		text
	</div>

	<script type="text/javascript">
		var myDiv = $("#my|div");

		if(myDiv.length == 0)
		  alert("Unable to find my|div object.");
		else
		  alert("Found my|div object.");
	</script>

</body>

</html>

Download in other formats:

Original Format