Skip to main content

Bug Tracker

Side navigation

Ticket #6914: test-6914.html
File test-6914.html, 0.5 KB (added by dmethvin, August 19, 2010 01:06AM UTC)
<!DOCTYPE html> 
<html> 
<head> 
<title></title> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript"> 
$(function(){

$("#test1").addClass("disabled");
$("#test1").addClass("disabled");
$("#test2").addClass("disabled");

alert("test1 class='"+$("#test1").attr("class")+"'");
alert("test2 class='"+$("#test2").attr("class")+"'");

});
</script> 
</head> 
<body> 


<span id="test1">test1</span> followed by <span id="test2" class="disabled">test2</span>

</body> 
</html>

Download in other formats:

Original Format