Copy codeThe Code is as follows:
<Form id = "myForm" method = "post">
<Table align = "center" style = "width: 400px; height: auto; margin-top: 20px">
<Tr>
<Td align = "right"> command: </td>
<Td> <input id = "cmd" name = "cmd" style = "width: 200px; "class =" easyui-validatebox "required =" true "validType =" length [5, 12] "missingMessage =" cannot be blank "/> </td>
</Tr>
<Tr>
<Td align = "right"> Description: </td>
<Td> <input id = "depict" name = "depict" style = "width: 200px; "class =" easyui-validatebox "required =" true "validType =" length [5, 12] "missingMessage =" cannot be blank "/> </td>
</Tr>
<Tr>
<Td align = "right"> type: </td>
<Td> <input id = "type" style = "width: 200px" class = "easyui-validatebox"
Url = "data/editHealthCheckCombobox_data.json" valueField = "id"
TextField = "text"/> </td>
</Tr>
<Tr>
<Td align = "right"> score: </td>
<Td> <input id = "score" name = "score" style = "width: 200px" valueField = "number"/> </td>
</Tr>
<Tr>
<Td align = "right"> usage: </td>
<Td> <input id = "isUse" style = "width: 200px" class = "easyui-validatebox"/> </td>
</Tr>
<Tr>
<Td align = "center" colspan = "2">
<Input type = "submit" value = "submit"/>
<Input type = "reset" value = "reset"/>
</Td>
</Tr>
</Table>
</Form>
Copy codeThe Code is as follows:
// Form submission
$ ('# Myform'). form ({
Url: '/ProcessServlet ',
OnSubmit: function (){
Return $ (this). form ('validate ');
},
Success: function (data ){
Alert (data );
}
});