Bug Tracker

Ticket #3056: jqueryTest.htm

File jqueryTest.htm, 634 bytes (added by pr, 7 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4  <script type="text/javascript" src="jquery-1.2.6.js"></script>
5  <title>Untitled Page</title>
6  <style type="text/css">
7.testClass {
8  color: Red;
9} 
10  </style>
11  <script type="text/javascript">
12  $(function() {
13    $("#my_div").attr({
14      class: ""  // This causes a parse error in IE
15      //"class": "" // This fixes it.
16    });
17  });
18  </script>
19</head>
20<body>
21  <div id="my_div" class="testClass">hello</div>
22</body>
23</html>