Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

select class with data attribute jquery

const restaurantId = 351;
const featuredButton = $(`.js-featured-restaurant[data-restaurant="${restaurantId}"]`);
 
PREVIOUS NEXT
Tagged: #select #class #data #attribute #jquery
ADD COMMENT
Topic
Name
6+3 =