atribute selector and class same time 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}"]`);