日期:2014-05-17 浏览次数:20609 次
//绑定回调事件
$("#batch").data("ajaxCallback", function () {
var api = $gridCtin.data("treeSelect"),
obj = this,
$elm = api.getSelect().filter(":enabled"),
t = true;
if ($elm.length == 0) {
alert("请选择用户!");
}
$elm.each(function () {
var $this = $(this),
$td = $this.parents("td:first");
$td.find(":hidden").each(function () {
if ($(this).attr("name").toString().split(".")[1] == "Id") {
obj.data.push({ id: $(this).attr("name"), value: $(this).val() });
}
});
});
});