I'm developing an script that using nice select :
<div class=nice-select form-control tabindex=0><span class=current>تعداد حمام</span>
<ul class=list >
<li data-value=1 class=option selected focus>1 حمام</li>
<li data-value=2 class=option>2 حمام</li>
<li data-value=3 class=option>3 حمام</li>
<li data-value=4 class=option>4 حمام</li>
</ul>
</div>
I check the documention and it have just two method:
$('select').niceSelect('update');
$('select').niceSelect('destroy');
It didn't say how to get the selected value , i google it too but anyway i couldn't get the selected value and another point is that i have more than one nice select
in one page
How can i handle it?
Edited:
Thanks @jorge-fuentes-gonzález and this is the snippet/fiddle , can you help to get the selected value?