<input class="easyui-combotree tTree" name="tTree" style="height:24px;">
添加一行中的某列加入了下拉框,需要给下拉框赋值:index:1--value:aa、index:2--value:bb、index:3--value:cc(模仿winfom下拉框中的value和selectedvalue)
//为表格添加行
function addRow() {
var html = trAddHtml;
var index = $("tr[name='trItems']").length;
html = html.replace("{index}", index + 1)
$("#ItemsTable tbody:last").append(html);
$("tr[name='trItems']").eq(index).find("input[name='tTree']").first().combotree({
data: , //???此处添加下拉框的值?????
panelHeight: 180,
onSelect: function (node) {
//???此处获取选到的值???
}
});
}
如何给下拉框添加我要的值
MVC框架刚接触,小白一个。感谢各位大神~