javascript - Validation on numbers with jquery.bassistance validation -


I used the jquery.bassistance validation plugin. Now for verification on my areas, I want verification on my arrival text box. I want it to be valid on this box. The only checkboxes used in this checkbox are:

How can I do this? I now use this code:

  Validate $ ("Validate") ({Rules: {Email: {Required: true, email: true}, Number: {Required} : True, meanline: 3, phone: true}, math: {equal: 11}, agree: "required"}, message: {email: "an email address at email address", agree: Meet with "}, ErrorLabelContainer: $ (" form .error-messages ")});   

But number verification Validate on numbers. How can I determine that number verification? Accept: Sign.

Thanks

Try adding a custom reggae rule, here is a starting point You must update regex in your specific requirements:

  $ (function () {$ .validator.addMethod ("customRegex", function (value, element) {return it. Alternative (element) || /^[0-9\:]+$/i.test(value);}, "should contain only numbers, or a colon."); $ ("Validate"). Validate ({Rule: {"fieldId": {REQUIRED: True, Custom RAZOCKS: S }} Message: { "fieldId": {required: "You must enter a Akswayjh" custom Rijoks: "The format is not valid"}}});});    

Comments