作者cloudccw (OOC)
看板Ajax
標題Re: [問題] 請問jquery的cascade選單應用
時間Mon Sep 22 23:45:49 2008
$
(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
1F:→ chrismaggie:感謝C大.不過我改了之後.還是沒有顯示第二層選單 09/22 23:50