I need to hide all parameters if value attribute> 23
<select id="category_ids" class="cat-search-pb" multiple > <option value="20">Condo for Sale</option> <option value="24"> - Jomtien</option> <option value="25"> - Bang Saray</option> <option value="21">Condo for Rent</option> <option value="22">House for Sale</option> <option value="23">House for Rent</option> <option value="14">Land</option> <option value="15">Commercial</option> <option value="18">New Condo Projects</option> <option value="19">New House Projects</option> </select>
But this code does not work:
$(document).ready(function () { $(".cat-search-pb option[value>23]").closest('option').hide(); });
Thanks for your ideas!
source share