jquery select by attribute class code example
Example 1: jquery select by name attribute
$('[name="ElementNameHere"]').doStuff();
Example 2: select class with data attribute jquery
const restaurantId = 351;
const featuredButton = $(`.js-featured-restaurant[data-restaurant="${restaurantId}"]`);