jquery selector class and attribute 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}"]`);