I have on a webpage several buttons like that :
<div class="jet-portfolio__filter-item" data-slug="slug-one">
<div class="jet-portfolio__filter-item" data-slug="slug-two">
I'm catching a slug parameter passed in url that tells me which button I should click on page load. Question is how can I get the right button using javascript, since they don't have ids, to click it ?
Thanks !