$(document).ready(function(){
$('#mySelect').change(function(){
//alert($(this).children('option:selected').val());
var p1 = $(this).children('option:selected').val();//这就是selected的值
var ids = ["15","16","17","18","19","20","21","22"];
if($.inArray(p1, ids) != -1)
{
//alert(11);
$(".qikan_list").show();
}else{
//alert(22);
$(".qikan_list").hide();
}
})
})
转载于:https://my.oschina.net/u/914487/blog/520684