Re: [問題] 請問jquery的cascade選單應用

看板Ajax作者 (OOC)時間15年前 (2008/09/22 23:45), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/7 (看更多)
$(function () { $('#myFirstChildSelect').cascade('#myParentSelect', { : ajax: { : type: "post", : url: 'action.php', : data: { act: 'first', val: $('#myParentSelect').val() }, : }, : template: function(item) { return "<option value='" + item.Value + "'>" + : item.Text + "</option>"; }, : match: function(selectedValue) { return this.When == selectedValue; } }); }); funtion少包了一層吧? 應該是這個問題。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.163.154.36

09/22 23:50, , 1F
感謝C大.不過我改了之後.還是沒有顯示第二層選單
09/22 23:50, 1F
文章代碼(AID): #18rxsmbc (Ajax)
討論串 (同標題文章)
文章代碼(AID): #18rxsmbc (Ajax)