I've got this html with buttons for a mobile form:
<div id="npsvalue" style="margin-bottom: -24px;">
<input id="Q1689" name="Q1689" class="tsc_buttons2 black npsoption" type="button" value="0">
<span class="mincircle" style="background-color: #EA0F0F;"></span>
</div>
<div id="npsvalue" style="margin-bottom: -24px;">
<input id="Q1689" name="Q1689" class="tsc_buttons2 black npsoption" type="button" value="1">
<span class="mincircle" style="background-color: #EA0F0F;"></span>
</div>
.
.
.
<div id="npsvalue" style="margin-bottom: -24px;">
<input id="Q1689" name="Q1689" class="tsc_buttons2 npsoption lightgrey active" type="button" value="6">
<span class="mincircle" style="background-color: #DEDC21;"></span>
</div>
As you can see the only difference between the first and second element and the third (sixth) one is the class. What I need to do is get the value (6 in this case) of the active class. How can I do this with jquery or javascript?
Thanks