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
Daniel elliott
source
to share
1 answer
function removeTag() {
$(this).doSomething();
}
+6
Ned batchelder
source
to share