<a href="#" class="myclass anotherclass" id="myid anotherid">Link</a>
$('.myclass').click(function () {
var foo = '';
alert(foo);
});
In this example, I want an alert to pop up as that says: ".myclass".
How do I alert whatever is entered between the single quotes in the jQuery selector?
EDIT: I want to ONLY alert "myclass". Not "myclass anotherclass"