So my question is quite simple, see the code below. I would like to save the two spans in two different variables based on their value in the "data-language" attribute. Any idea how could I do this?
<div class="language-select">
<span class="language-item" data-language="hu">HU </span>
<span>/ </span>
<span class="language-item" data-language="en"> EN</span>
</div>