我是初学者,Jquery
我asp MVC4
使用 Jquery validate 插件
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/jquery.validate.js" type="text/javascript">
编码
<script>
jQuery(document).ready(function() {
jQuery("#monFormulaire").validate({
rules: {
"reclamation": {
"required": true,
"minlength": 4,
"maxlength": 60000
},
"cause": {
"required": true,
"minlength": 4,
"maxlength": 60000
},
"curative": {
"required": true,
"minlength": 4,
"maxlength": 60000
},
"Closing_date": {
"required": true,
"minlength": 1,
"maxlength": 60000
}
},
submitHandler: function (form) { /* envoyer Mail*/
mailJob();
}
});
});
<button type="submit" value="Page5" name="btnPage1" style="margin-left:1%" class="backRow" ></button>
<table border="1" class="mytab" style="margin: auto;">
formulaire .
</table>
</form>
验证以正确的方式运行,但服务器端的操作没有被调用任何人有任何想法???