我有一个带有县下拉列表的页面。一旦你选择了一个县,它就会显示一个显示商店列表的第二个下拉列表。然后,一旦您选择了一个商店,就会出现一个按钮。这适用于最新的浏览器,但似乎不适用于 IE7。
在 IE7 中,一旦您进行第一次选择,就会出现第二个下拉菜单,然后当您进行第二次选择时,没有任何反应,它不会显示按钮。
任何人有任何想法为什么?
谢谢
$(function() {
$("#stores").chained("#county");
$("#county").bind("change", function(event) {
if ("" != $("option:selected", this).val()) {
$("#storedropdown").fadeIn();
} else {
$("#storedropdown").hide();
$("#storelocator #buttons").hide();
}
});
$("#stores").bind("change", function(event) {
if ("" != $("option:selected", this).val()) {
$("#storelocator #buttons").fadeIn();
} else {
$("#storelocator #buttons").hide();
}
});
});