validation - jQuery Validate On Remote response based -


remote: {   url: "/pages/",   complete: function (status) {       return !status;   } } 

i have applied jquery validation , remote parameter, call returns true , false depending on data sent, need validation if true returned should considered false , vice versa. tried returning opposite response in complete callback, validations not work way guess.

not sure may status returned remote not considered bool here. try this.

remote: {   url: "/pages/",   complete: function (status) {        if(status=="true")           return false;        return true; //no need of else   } } 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -