Bug Tracker

Ticket #6914: test-6914.html

File test-6914.html, 561 bytes (added by dmethvin, 12 years ago)
Line 
1<!DOCTYPE html> 
2<html> 
3<head> 
4<title></title> 
5<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js" type="text/javascript"></script>
6<script type="text/javascript"> 
7$(function(){
8
9$("#test1").addClass("disabled");
10$("#test1").addClass("disabled");
11$("#test2").addClass("disabled");
12
13alert("test1 class='"+$("#test1").attr("class")+"'");
14alert("test2 class='"+$("#test2").attr("class")+"'");
15
16});
17</script> 
18</head> 
19<body> 
20
21
22<span id="test1">test1</span> followed by <span id="test2" class="disabled">test2</span>
23
24</body> 
25</html>