以下代码用于Js脚本中:

var Work_Content_Back = "<table width='99%' class='table' style='margin-bottom: 5px;' name='table" + count + "' id='table" + rand + "'>";

Work_Content_Back += "<tr>";
Work_Content_Back += "<td class='tb_left'>工作地点:</td>";
Work_Content_Back += "<td><input id='txtWorkPlace" + count + "' class='easyui-combobox easyui-validatebox' style='width: 100%; " +
" height: 25px' data-options=\"required:true,valueField:'Code',textField:'Name',panelHeight:'auto',data:" + $("#txt_WorkPlace").val().replace(/\"/g, "'") + "\"></td>";
Work_Content_Back += "<td class='tb_left'>工作类别:</td>";
Work_Content_Back += "<td><input id='txtJobCategory" + count + "' class='easyui-combobox easyui-validatebox' style='width: 100%; height: 25px' data-options=\"required:true,valueField:'Code',textField:'Name',panelHeight:'auto',data:" + $("#txt_JobCategory").val().replace(/\"/g, "'") + "\"></td>";
Work_Content_Back += "<td class='tb_left'>是否差旅:</td>";
Work_Content_Back += "<td><input id='txtIsTravel" + count + "' class='easyui-combobox easyui-validatebox' style='width: 100%; " +
" height: 25px' data-options=\"required:true,valueField:'ID',textField:'text',panelHeight:'auto',data:[{ID:'Y',text:'是'},{ID:'N',text:'否'}]\"></td>";
Work_Content_Back += "</tr>";

Work_Content_Back += "</table>";

 

$("#Work_Content").append(Work_Content_Back);
$.parser.parse($("#Work_Content" ));//解析器  用于渲染应用Easyui类的标签

posted on 2015-11-05 15:20  Herf  阅读(474)  评论(0编辑  收藏  举报