How do you declare the 'tree_add_window' and the form. Please show an example or some code snippets to demonstrate your issue.
some code is below. The attachment contains the complete page code.
Thank you very much!
//字典类型为字典数据,树形或列表数据窗口
var sub_win = $('#sub_window').window({
modal: true,
closed: true,
minimizable: false,
maximizable: false,
onClose: function () {
}
});
//树形数据新增或编辑窗口
var tree_add_window = $('#tree_add_window').window({
modal: true,
closed: true,
minimizable: false,
maximizable: false,
onClose: function () {
$('#tree_add_form').form('clear');
}
});
<div id="tree_add_window" class="easyui-window" title="Add Info"
style="width: 400px; height: auto;">
<form id="tree_add_form" method="post">
<table width="100%" cellpadding="0" cellspacing="1">
<tr height="40">
<td width="100" align="right">
<span id="nodeName"></span>:
<input type="hidden" name="nodeId"/>
<input type="hidden" name="nodePid"/>
</td>
<td colspan="3">
<input class="easyui-validatebox" type="text" name="nodeName"
data-options="required:true,validType:['length[0,50]']" size="30"/>
</td>
</tr>
<tr height="40">
<td width="100" align="right">
<span id="nodeValue"></span>:
</td>
<td colspan="3">
<input class="easyui-validatebox" type="text" name="nodeValue"
data-options="required:true" size="30"/>
</td>
</tr>
<tr height="40" align="left">
<td>
</td>
<td colspan="3">
<a id="tree_submit_btn" href="javascript:void(0)"/>
</td>
</tr>
</table>
</form>
</div>