JQuery Get Element nach Klassen- und Datenattribut
$('.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();