Is there a way to select element by its data attribute using jQuery? I have a div
<div class="remove">delete</div>
And I've added data attributes to it like so:
$('.remove').attr('data-id', data._id);
$('.remove').attr('data-rev', data._rev);
What I want is to select this element based on its 'data-id' and 'data-rev' using jQuery.
Thanks!