$(document).ready(function() {
$("#filter-sq-ft-min").change(function(){
$('#filter-sq-ft-max option:first').prop('selected',true);
$("#filter-sq-ft-max option").hide();
var maxValue = $(this).val();
$("#filter-sq-ft-max option[value='"+maxValue+"']").show();
$("#filter-sq-ft-max option[value='"+maxValue+"']").nextAll().show();
});
});
min selectのオプションが選択された後に、max selectからすべてのより小さいオプションを非表示にしたいとします。jQuery .hide()selectがサファリで機能しない
Google Chromeでも動作します。
をあなたのHTMLコードを記載してください。 jqueryのセレクタが空である可能性があります –