1、错误描述
2、错误原因
在界面中,定义一个输入框,name属性给nodeName,这个名称跟jquery中有冲突
<form>
<table class="mytable">
<tr>
<td>
<span class="requiredSign">*</span>名称
</td>
<td>
<input type="text" id="nodeName" name="nodeName" class="required"/>
</td>
</tr>
<tr>
<td>
<span class="requiredSign">*</span>日期
</td>
<td>
<input type="text" id="date" name="date" class="Wdate required" onClick="WdatePicker({startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})"/>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</form>
3、解决办法
将输入框中的name属性nodeName改成其它的描述
<form>
<table class="mytable">
<tr>
<td>
<span class="requiredSign">*</span>名称
</td>
<td>
<input type="text" id="nodeNames" name="nodeNames" class="required"/>
</td>
</tr>
<tr>
<td>
<span class="requiredSign">*</span>日期
</td>
<td>
<input type="text" id="date" name="date" class="Wdate required" onClick="WdatePicker({startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})"/>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</form>