<div class="codetitle"> <span><a style="CURSOR: pointer" data="97132" class="copybut" id="copybut97132" onclick="doCopy('code97132')"><u>复制代</u></a></span>代码如下:</div> <div class="codebody" id="code97132"> <br><form id="myForm" method="post"> <br> <table align="center" style="width:400px;height:auto;margin-top: 20px"> <BR> <tr> <br> <td align="right"> コマンド:</td> <br> <td><input id="cmd" name="cmd" style="width: 200px;" class="easyui-validatebox" required="true" validType="length[5,12]" missingMessage=" 空不可"/></td> <br> </tr><br> <tr> <br> <td align="right">描写:</td><br> <td><input id="depict" name="depict" style="width: 200px;" class="easyui-validatebox" required="true" validType="length[5,12]" missingMessage=" 空不可"/></td> <br> </tr><br> <tr> <br> <td align="right">種類:</td> <br> <td><input id="type" style="width: 200px" class="easyui-validatebox"<BR> url="data/editHealthCheckCombobox_data.json" valueField="id"<BR> textField ="テキスト" /><</td> <BR> </tr> <br> <tr><br> <td align="right">分数:</td> <br> <td><input id="score" name="score" style="width: 200px" valueField="number"/></td> <br> </tr><br> <tr> <br> <td align="right">使用状況:</td> <br> <td><input id="isUse" style="width: 200px" class="easyui-validatebox"/></td> <br> </tr> <br> <tr> <br> <td align="center"colspan="2"><br> <input type="submit" value="提交"/><br> <input type="reset" value= "重置"/><br> </td> <br> </tr><br> </table><br> </form><br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="88846" class="copybut" id="copybut88846" onclick="doCopy('code88846')"><u>复制代</u> </a></span> 代码如下:</div> <div class="codebody" id="code88846"> <br>//表单提交<br> $('#myForm').form({<br> url:'/ProcessServlet',<br> onSubmit:function(){<br> return $(this ).form('validate');<br> },<br> success:function(data){<br> alert(data);<br> }<br> }); <br> </div>