Can you select an element with two classes in jQuery
- by Petras
I have an element that has two classes but can't seem to select it with jQuery.
Is it possible.
Here's the code:
<html>
<head runat="server">
<script type="text/javascript" src="abc/scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert($(".x.y").html()); //shows null, I want it to show "456"
});
</script>
</head>
<body>
<div class="x" class"y">456</div>
</body>
</html>