标签:fun append text sign query move app checked name
// 给所有 name = plan_assignment 的控件绑定一个事件
$(function(){
$("input[name=‘plan_assignment‘]").each(function(){
$(this).click(function(){
var id = $(this).val();
console.log(id);
var checked = $(this).is(‘:checked‘);
var parm =‘‘;
if(checked){
$("#"+id).find("td:not(‘:first,:last‘)").each(function(){
parm+=$(this).text()+",";
});
parm+="240";
window.parent.appendRow(id,parm);
}else{
window.parent.removeRow(id);
}
});
});
});
标签:fun append text sign query move app checked name
原文地址:https://www.cnblogs.com/dqywin/p/10538832.html