JQuery otrzymuj element według klasy i atrybutu danych
$('.slide-link[data-slide="0"]').addClass('active');
Lokesh003Coding
$('.slide-link[data-slide="0"]').addClass('active');
const restaurantId = 351;
const featuredButton = $(`.js-featured-restaurant[data-restaurant="${restaurantId}"]`);
//get the result as array
<option value="<?php echo $value['id']; ?>" data-count="5">
</option>
var data = $('.myclass').map(function() {
return $(this).data('optionid');
}).get();