Answers for "jquery selector by data attribute value multiple"

9

jquery select by data attribute

$('div[data-key=value]');
Posted by: Guest on April-06-2020
0

select class with data attribute jquery

const restaurantId = 351;
const featuredButton = $(`.js-featured-restaurant[data-restaurant="${restaurantId}"]`);
Posted by: Guest on November-22-2020

Code answers related to "jquery selector by data attribute value multiple"

Code answers related to "Javascript"

Browse Popular Code Answers by Language