Friday 15 August 2014

jQuery Validation Plugin not valid if matches -


I am using the jQuery validation plugin and I'm running into a problem.

I may have some different errors in the drop down box.

There may be an option for "no manager set", "no member is not set" or "select an option above".

How do I see this plugin as invalid form submissions?

The one on which I am trying to work is for the owner.

  jQuery ("# ​​AddFunctionForm"). ({Rule: {Owner: "Required", Name: "Required", Description: "Required"}, Message: {Owner: "Test", Name: "Name of Function is Required.", Description: "Details Required "}", Highlighted: function (label) {jQuery (label) .closest ('. Control-group'). AddClass ('error');}, success: function (label) {label .addClass ('valid') The closest ('control group'). AddClass ('success');}});    

Perhaps you can use something like: New! E ', function (value, element) {return value! ==' UNACCEPTABLE_VALUE ';});

Then use it like this:

  Rule: {fieldName: 'required newRuleName',}, Message: {fieldName: {Required: 'field is required', newRuleName: 'You can not select this value.'}},   



No comments:

Post a Comment