jquery select class with data value code example
Example: select class with data attribute jquery
const restaurantId = 351;
const featuredButton = $(`.js-featured-restaurant[data-restaurant="${restaurantId}"]`);
const restaurantId = 351;
const featuredButton = $(`.js-featured-restaurant[data-restaurant="${restaurantId}"]`);