How to turn event.currentTarget into a jQuery object or something like that so that I can then use the jQuery addClass method for the object? I know I can just do: event.currentTarget.className + = '.class', but I was wondering how to work with the target using jQuery.
$('.class').click(function(event) { Class.down($(this).parent().prev().attr('alt')); Class.style($(event.currentTarget)); });
source share