Questions tagged as 'jquery-validate'

1
answer

Date problem with globalize.js and jquery.validation.globalize.js. How to solve?

I'm having problems with the date fields of my application. Followingthisresponse,whichIfoundtobethemostappropriate, Error message in datetime field , I set up my ASP.NET MVC application as follows: I installed the jquery-globalize packag...
asked by 28.04.2015 / 15:48
1
answer

Is it possible to use sub groups?

I have a form and it has three pairs of start / end dates. For each pair I validate if both dates are filled or none of them are filled, because it is not allowed to fill in the start date and not the end date and vice versa, in addition, I can...
asked by 30.01.2014 / 19:01
1
answer

jQuery validate - rule skip_or_fill_minimum does not fire if used more than once

I have a form that is composed of four inputs and they are grouped in pairs. The rule for this form is very simple, if I fill one of the inputs of the pair, I have to fill in the other one too or do not fill in any. To achieve this beh...
asked by 06.02.2014 / 23:07
2
answers

Is it possible to have dynamic rules with jquery validation?

I have three fields, two inputs text and between them a select . If one of the first two is filled in the other becomes mandatory. The problem is that when a single value, in the case the last option, of the select is filled all thr...
asked by 24.02.2014 / 18:16
2
answers

Update from change in select

I have a list with multiple selects and I need to change the select option to be updated in the database. I can do this through ajax + php. My question actually is how to trigger the event from the option change. Could someone give me a light? T...
asked by 27.08.2015 / 17:19
3
answers

Validate Datetime on client

I have a model with a property of type DateTime : [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")] [DataType(DataType.Date, ErrorMessage="Data em formato inválido")] public DateTime? Date {get;set;} A...
asked by 31.12.2014 / 02:56
3
answers

How to change the input color using jquery Validate?

I'm implementing a jquery form, and I want it when the validate executes and the class error is appended to the label leaving the red font, I'm going to send a picture representing how I want it. <html> <head> <...
asked by 28.10.2016 / 16:28
2
answers

Enable / Disable button according to field validation

I'm performing date validation for two <input type="text"> fields with jQueryFormValidator : $.validate({ modules : 'date' }); <script src="https://ajax.googleapis.com/ajax/libs/jque...
asked by 29.05.2015 / 01:16
1
answer

Validate if one of the fields has been filled out

I'm using the Jquery Validation plugin I need to know if at least one of the fields has been filled out Fields > Phone, Mobile I tried to do this: $("#Telefone").rules("add", { required: $('#Celular').val() == '...
asked by 16.12.2014 / 17:12
1
answer

jQuery Masked Input - Is it possible to recover the mask attached to the field?

I'm using jQuery Masked Input Plugin with jQuery Validation Plugin . When a form field loses focus, the validation plugin shows a message, but this is not happening with the fields that are have masks, perhaps because the blur event happens a...
asked by 26.02.2014 / 21:32