0
<select name="select-choice-1" id="select-choice-1" data-native-menu = false multiple=true>
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
</select>

$("#select-choice-1").selectmenu({
    change: function() {
        DataObj.GetJson(DataObj.GetRequestUrl("InitData","sessionKey="+ DataObj.sessionKey),"InitData");
    }
});

这就是我上面关于选择更改的所有代码。但是当我更改所选菜单时它不起作用。我不知道它是怎么发生的

4

1 回答 1

0

试试这个:

$("#select-choice-1").selectmenu();
$("#select-choice-1").bind( "change", function(event, ui) {
        DataObj.GetJson(DataObj.GetRequestUrl("InitData","sessionKey="+ DataObj.sessionKey),"InitData");
});
于 2012-04-12T10:26:00.163 回答