Questions tagged as 'jquery-validate'

1
answer

Bug when validating a field with word limitation using Jquery validate

I have a form where the user needs to enter his full name, so I used the jQuery Validate plugin to make these validations, and I also added the additional methods , where there is a function called minWords that you place the minimum quanti...
asked by 02.01.2019 / 16:10
2
answers

Require input text input with jQuery validator

I am making a registration form, and I have three fields to enter values. I want to make it mandatory to fill in at least one of the three input text. Does anyone know how to do this with jQuery Validator? <input type="text" nam...
asked by 27.01.2016 / 00:31
2
answers

Image Size Validation

I'm trying to use the jQuery Validate plugin to validate a file field. I just want to check the size of the image. If it is larger than 3mb it is not to submit the form. See my code below: $.validator.addMethod('filesize', functio...
asked by 27.11.2015 / 18:53
1
answer

Using Jquery Validate in conjunction with Form Wizard

I'm putting together a step-by-step form. I did a test a Validate in the email field and, the verification of the email worked, however, the Validate will not go to the next step if the field is blank. Follow what I've done so far. <...
asked by 04.12.2017 / 03:04
1
answer

Leave input wrapped with strokes when using Jquery Validate

I'm using the Jquey Validation plugin and I'm trying to leave the error mark in the input as in the image I'm attaching, tried some alternatives and the result was not what I expected, what I have: $("#frmLaudo").validate({ // Regras rules: {...
asked by 01.12.2016 / 17:50
1
answer

How to create pattern with jQuery Validation Plugin?

I need to create a input mask (pattern) for the CPF type 000.000.000-00 and for CNPJ 00.000.000 / 0000-00 via the jQuery Validation plugin. What would be the regex to be creating this validation? Note: CPF and CNPJ will be two differe...
asked by 01.12.2016 / 19:32
1
answer

Validate zip code and fill in fields automatically jquery validate

How can I validate a ZIP code and fill in a field, for example city, using jquery validate? For example: the field (input) that the user would fill the city would be disabled and the value of the same would be taken by a validation of the CEP...
asked by 21.09.2016 / 18:51
1
answer

Validate several Emails inside input to enter from the enter key with jquery

I want to use a input to store multiple emails but I'm having trouble deploying this in practice. When placing an email in input the user press enter, to validate the email, if valid add the character ; How to do this...
asked by 01.10.2015 / 22:37
1
answer

jquery inputmask does not accept quantifier in function "validator"

I'm trying to make a customAlias to use with jQuery Inputmask, but I'm facing the following problem: My input: <input id="input-field-nome" data-inputmask="'alias':'customAlias'" type="text" data-rule-required="true" class="form-co...
asked by 09.10.2015 / 17:18
1
answer

Validate dates with Jquery validate for dd / mm / yyyy

I want to validate the dates with JQuery Validate, however, I researched a lot more the solutions found did not solve my problem. My JS: // incluir todos elementos do form na pagina $("form").each(function () { // inicializa o plugin no...
asked by 28.09.2018 / 16:53