How to turn the event.currentTarget into jQuery object or something like that so I could then use jQuery's addClass method on the object? I know I could just do like: event.currentTarget.className += ' .class', but I was wondering how to work with the event target with jQuery.
$('.class').click(function(event) {
Class.down($(this).parent().prev().attr('alt'));
Class.style($(event.currentTarget));
});
$(event.currentTarget).addClass("classname");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With