select class with data attribute jquery

JavaScript
$('.slide-link[data-slide="0"]').addClass('active');const restaurantId = 351;
const featuredButton = $(`.js-featured-restaurant[data-restaurant="${restaurantId}"]`);
Source

Also in JavaScript: