我有这段代码http://pastie.org/1431114它有什么问题吗?当我第二次点击国家/地区选择时,我只会获得区域选择列表。
答案 0 :(得分:0)
我不明白你为什么要使用
$('select#country').selectmenu({
select: function(event, options) {
和
<select id="country" name="country"
onchange="javascript: get_regions(this.value)">
如果您使用这样的代码
,可能会容易得多$('select#country').change(function(){
var value = $(this).val();
//ajax call
})