为什么这个脚本在Safari中不起作用? Chrome,Firefox,Opera都可以......
<select id="category_id" name="category_id[]" multiple >
<option value="20">Condo for Sale</option>
<option value="21">Condo in Jomtien</option>
<option value="22"> - Condo in Bang Saray</option>
<option value="23"> - Condo in East Pattaya</option>
<option value="27"> - Condo in Central Pattaya</option>
<option value="28"> - Condo in Na Jomtien</option>
</select>
<script>
$(document).ready(function() {
$("#category_id option[value]").filter(function() {
return +$(this).val() > 21;
}).hide();
});
</script>
感谢您的想法