JQuery selector for target element

I have some JS using JQuery

function removeTag() {
    $('{...}').doSomething();
}

$(document).ready(function() {
    $('.RemoveTag').click(removeTag);
});

      

Is there anything I can replace {...} to give me the item that was clicked?

Kindness,

Dan

+2


source to share


1 answer


function removeTag() {
    $(this).doSomething();
}

      



+6


source







All Articles