internet explorer - Jquery Validate bug on IE : [Object object] -


I have a problem with IE and FF (it works fine on Chrome) with my JQuery valid. It redirects me to blank pages displaying "[object object]" on the blank page: Actually, page load is an error message correctly, but after an empty time it reloads on this blank page.

Here's my code:

  $ (document) ready (work () ($ {'myform'} validate ({rule: {quantity: {expected: Error label container: '#errorList', true, number: true, least: 1}}, message: {quantity: {required: 'quantity required', number: 'quantity zero', minimum: 'quantity required'}} Cover: 'P'});});  

and cshtml:

  & lt; Div id = "errorList" & gt; & Lt; / Div & gt; @ Use (HTML "beniform" ("create", "management", form.math.post, new {@id = "myForm"}) {@ Html.AntiForgeryToken ()  

I thought about a library conflict, or something else, but when I was on this JS part Commenting, it works fine ...

Any ideas? Thanks for your time !

If you insist on using an anchor, & lt; a & Gt; tag, in place of the appropriate submit button, there is no need to use inline JavaScript ...

  & lt; a href = "javascript: $ ( You can use jQuery instead ...      

P> HTML :

  & lt; A href = "#" id = "send" & gt; Send & lt; / A & gt;  

jQuery :

  $ (document) .ready (function () {$ ('# myForm'). ({// valid // // get started ... // your rules and options}); $ ('send'). (Click ',' function (e) {// click capture anchor e .preventDefault (); // Block default anchor behavior $ ('# myForm') Submit Submit (); // submit form}};});  

Comments