Skip to main content

Bug Tracker

Side navigation

Ticket #6392: test-6392.html


File test-6392.html, 0.5 KB (added by dmethvin, August 11, 2010 02:11AM 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"> 
$(document).ready(function(){



    alert('$("#myId").attr("for") is "'+$("#myId").attr("for")+'"'); 
	alert('$("label").attr("for") is "'+$("label").attr("for")+'"');

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

<div for="test" id="myId"></div>
<label for="test"></div> 

</body> 
</html>

Download in other formats:

Original Format