Questions tagged as 'jquery.validate'

1
answer

Validate Datepicker that contains only date

I use Asp.Net Core MVC (Razor + Jquery Validate + Unobtrusive). I display in a Datepicker only the date part of a DateTime field through the following code in my ViewModel: [Required(ErrorMessage = "* preenchimento obrigatório")] [DataType(Dat...
asked by 07.10.2018 / 03:39
0
answers

Checking if the CPF is unique with JQuery validate remote

I'm making a form that checks whether the CPF already exists in a database. In my JS I use the JQuery Validate library $('#form').validate({ rules:{ cpf: { required: true, cpfBR: tr...
asked by 26.09.2018 / 22:39
1
answer

Validate when value is "Selected" DropdownList with JQuery.Validity

I have the following code jQuery : $("#aspnetForm").validate({ errorElement: 'span', errorClass: 'help-block', rules: { Dropdown: { required: true } }, messages: { Dropdown: {...
asked by 13.03.2018 / 19:45
0
answers

Jquery.Validation file upload allows post even with other invalid fields

Use jquery.validation v.1.17 and additional-methods.js to validate multiple fields, including file uploads . I use the bootstrap and program in C # .NET . There is no UpdatePanel on the page. After loading the form, when you click Save,...
asked by 02.02.2018 / 13:22
1
answer

validate dynamic field with validate

I'm trying to do a validation for a dynamic field with validate, but it only validates once. The dynamically added fields are not being validated below: $(document).ready(function() { $(".data").mask("99/99/9999"); var i = 1;...
asked by 12.06.2017 / 23:05
1
answer

Ignore fields to validate using jquery.validate.1.8.1

I have a project in the company where I'm interning and I've had some mistakes in validating some inputs. I use ASP.NET MVC, Razor, and Javascript. At the time of submitting all the fields I get an error. When using the Chrome console I discover...
asked by 18.01.2017 / 20:46