У меня проблема. Показать только 1 из того же класса. Мои коды раскрывающегося списка следующие:
<select id="AgeSelect" class="nf" name="ages">
<option value="">Filter By Age Group</option>
<option value="10 Years & Under" class="10YearsandUnder">10 Years & Under</option>
<option value="10 Years & Under" class="10YearsandUnder">10 Years & Under</option>
<option value="10 Years & Under" class="10YearsandUnder">10 Years & Under</option>
<option value="10 Years & Under" class="10YearsandUnder">10 Years & Under</option>
<option value="14 Years and Under" class="14YearsandUnder">14 Years and Under</option>
<option value="14 Years and Under" class="14YearsandUnder">14 Years and Under</option>
<option value="10 Years & Under" class="10YearsandUnder">10 Years & Under</option>
<option value="10 Years and Under" class="10YearsandUnder">10 Years and Under</option>
<option value="12 Years and Under" class="12YearsandUnder">12 Years and Under</option>
<option value="10 Years and Under" class="10YearsandUnder">10 Years and Under</option>
<option value="10 Years & Under" class="10YearsandUnder">10 Years & Under</option>
<option value="10 Years and Under" class="10YearsandUnder">10 Years and Under</option>
<option value="10 Years and Under" class="10YearsandUnder">10 Years and Under</option>
<option value="12 Years and Under" class="12YearsandUnder">12 Years and Under</option>
<option value="12 Years and Under" class="12YearsandUnder">12 Years and Under</option>
<option value="8 Years and Under" class="8YearsandUnder">8 Years and Under</option>
<option value="8 Years and Under" class="8YearsandUnder">8 Years and Under</option>
<option value="10 Years and Under" class="10YearsandUnder">10 Years and Under</option>
<option value="10 Years and Under" class="10YearsandUnder">10 Years and Under</option>
<option value="Open Age" class="OpenAge">Open Age</option>
<option value="Open Age" class="OpenAge">Open Age</option>
<option value="Open Age" class="OpenAge">Open Age</option>
<option value="Special Needs" class="SpecialNeeds">Special Needs</option>
<option value="10 Years & Under" class="10YearsandUnder">10 Years & Under</option>
<option value="10 Years & Under" class="10YearsandUnder">10 Years & Under</option>
<option value="Open Age" class="OpenAge">Open Age</option>
<option value="Open Age" class="OpenAge">Open Age</option>
<option value="Special Needs" class="SpecialNeeds">Special Needs</option>
</select>
Вы можете увидеть все классы в параметрах.
например class="10YearsandUnder"
, class="14YearsandUnder"
. Я пробовал CSS First Selector, но мне это не удалось.
Пожалуйста, помогите мне это сделать.
Мне нужно только показать один из тех же классов.