Bug Tracker

Ticket #3972: jquerybugtest.html

File jquerybugtest.html, 655 bytes (added by zirouk, 11 years ago)

Example

Line 
1<html>
2<head>
3        <!--<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 -->
4        <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 -->
5        <script type="text/javascript">
6                $(document).ready(function () {
7                        var json = {"field1":null,"field2":null,"field3":null,"field4":null,"employees":["Joe","David"]};
8                        $('#input').val(json.field2);
9                        $('#input').addClass(json.field2);
10                });
11        </script>
12</head>
13<body>
14        <input id="input" type="text" />
15</body>
16</html>