Skip to main content

Bug Tracker

Side navigation

Ticket #3972: jquerybugtest.html
File jquerybugtest.html, 0.6 KB (added by zirouk, January 23, 2009 03:44PM UTC)

Example

<html>
<head>
	<!--<script type="text/javascript" src="http://code.jquery.com/jquery-1.2.1.js"></script> --> <!-- Sets the input to empty in both IE7 and Firefox 3 -->
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.3.1.js"></script> <!-- Sets the input to empty in Firefox 3, but "null" in IE7 -->
	<script type="text/javascript">
		$(document).ready(function () {
			var json = {"field1":null,"field2":null,"field3":null,"field4":null,"employees":["Joe","David"]};
			$('#input').val(json.field2);
			$('#input').addClass(json.field2);
		});
	</script>
</head>
<body>
	<input id="input" type="text" />
</body>
</html>

Download in other formats:

Original Format