Re: [問題] 請問jquery的cascade選單應用
$(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
09/22 23:50, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 7 篇):