Questions tagged as 'jquery-validate'

0
answers

Change image name, upload file jquery

Good morning Sirs, Someone who has already worked, or who understands the plugin code file upload jquery ESSE Could you tell me How do I change the name of the image before uploading? Example: The image is named image.jpg and I would lik...
asked by 12.08.2015 / 14:08
0
answers

Send input value file via ajax without form

I need to upload images inside a form. I would like to know if it is possible to pass parameters from the image upload form via ajax outside the general form? If so, how would I do it? I tried some forms, but none worked. NOTE: I am using val...
asked by 13.08.2015 / 14:03
0
answers

Integrate validate.js with dropzone.js

I've integrated dropzone.js with a form, and would need to validate the dropzone.js fields. I have the following code (it is not working, but it's what I need to "merge" in case): var Galerias = function () { return { //main func...
asked by 05.05.2015 / 02:40
0
answers

jquery validation problem

I'm using a form to populate items in a list dynamically. I cleaned the form fields by inserting the items from the list into adding items. Problem: When I submit it to write, Razor @Html.ValidationMessageFor help intervenes not all...
asked by 22.12.2014 / 15:25
3
answers

Hide field required and not required

I have a form. In this form I have two radiobutton with two options. 1) Questao 1 (Obrigatorio) 1 = Sim 2 = Nao ______________________ 2) Questao 2(Obrigatorio) 1 = Vivo 2 = Morto If this question 1 is = Yes Question 2 loses the oblig...
asked by 14.02.2017 / 19:12
2
answers

How to validate a zip using jQuery.validate

I'm not able to validate a zip code that the user has typed. I added the following code inside the jquery.validete.js jQuery.validator.addMethod("cep", function(value, element) { return this.optional(element) || /^[0-9]{2}.[0-9]{3}...
asked by 26.10.2015 / 18:31
1
answer

Go through existing classes in a form and remove

I'm creating a form with validation using the jQuery Validation plugin, the form already has a ready structure, so I had to, the successful error classes were added together with the .form-group class. When the field is successfully valid...
asked by 31.12.2018 / 19:00
1
answer

Validating dynamic fields with Jquery.validate ()

I'm having trouble validating fields in a PivotTable using the jquery.validate () plugin where input are sequential. JS $("#addLinha").on("click", function () { // ADD QTD DE LINHAS INFORMADAS NO INPUP var n_prod = $("#n_p...
asked by 06.03.2018 / 14:52
2
answers

CheckBox Switch - One of them must be marked as true or 1

Example: I have 6 different checkboxes. All of them are with name="checkbox[]" , one of them must be marked with 1 or true. Here's an example in jsfiddle: link The "SUBMIT" button is not working. Update - Try 1 Here's jsfid...
asked by 07.02.2017 / 01:50
1
answer

Enable jQuery Validate (plugin) with ajax response

I've always found this plugin interesting because it leaves the form simple with subtle messages to the visitor. I decided to implement and fall into the following dilemma: How do I make the return of my AJAX activate some warning on my form?...
asked by 07.08.2018 / 20:26