[jQuery] this.addClass("foo")??
Here's the code that doesn't work. Can someone point me in the right
direction?
$(function(){
$("span.tagvalue").click(function() {
// ...do other stuff...
// add "clicked" as class now that it's been clicked
this.addClass("clicked"); // THIS DOESN'T WORK
});
});
This doesn't work because 'this' is not a jQuery object I guess. How
sould I do this then?
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/