JQuery Get Element por clase y atributo de datos
$('.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();