<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");
}
});
这是关于上面选择更改的所有代码。但是当我更改所选菜单时它不起作用。我不知道它是怎么发生的
答案 0 :(得分:0)
试试这个:
$("#select-choice-1").selectmenu();
$("#select-choice-1").bind( "change", function(event, ui) {
DataObj.GetJson(DataObj.GetRequestUrl("InitData","sessionKey="+ DataObj.sessionKey),"InitData");
});