<div id='participant-detail'>
<select class="form-control quantity" data-short-name="8">
</select>
<select class="form-control quantity" data-short-name="6">
</select>
</div>
In these given example, how am I supposed to get the value of the first select tag with the data-short-name of '8'?
I tried
$('#participant-detail .quantity').find("select[data-short-name='8']").val()
the '#participant-detail' is the id of the container(div) of those 2 select tags.
How to find or navigate to the specific tag and get its value?
Giving it an id is not advisable because those select tags were created from some conditions.