作者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