Questions tagged as 'jquery-validate'

2
answers

Obligate fields from selected radio

How do I jquery validate validate only the fields of the selected radio input? Example: I have 2 input radio (individual and corporate) I want to validate only the selected radio fields. If the user selects a physical pers...
asked by 15.09.2015 / 05:28
1
answer

Jquery Validate max according to condition

I'm making a jquery.validate , can get the max to be dynamically, something like: ... max: function () { return $('#QtdEstoqueHidden').val(); ... Okay, it worked! (I store the max value in a hidden field that is dynamically re...
asked by 03.03.2017 / 21:47
2
answers

Validate RadioButton with jQuery

I would like to do a validation via jQuery, to see if the client selected some RadioButton JSFiddle Demo It displays an alert if it has not been selected, but it still submits, should not. HTML <table id="RadioButtonLis...
asked by 30.06.2014 / 19:31
1
answer

Validate Jquery does not work with Bootstrap Toggle

I'm using link , a simple toggle of true or false. Here is the code: View: <form id="myform"> @Html.CheckBoxFor(model => model.Permitir, new { id = "toggle1", data_on = "Sim", data_off = "Não", data_toggle = "toggle", dat...
asked by 12.01.2017 / 00:20
2
answers

Dynamic checkbox validation with jquery-validator

I'm trying to validate a checkbox using the link plugin. The problem occurs that the field I'm validating does not exist until another predetermined field is selected. Therefore, validation passes even though this field does not exist....
asked by 24.02.2014 / 21:25
1
answer

How to integrate Jquery.validator and SmartNotification.js plugin?

My question is: How do I integrate the messages in Jquery.Validator () with the modal windows of the SmartNotification.js plugin? I would like, when inputs to enter roles of JQuery validators , a message is displayed via SmartNotificatio...
asked by 02.07.2015 / 06:16
1
answer

Jquery validate does not validate correctly

I'm using jquery validate and unobtrusive for validation in an asp.net mvc 5 project When I needed to move decimal numbers, I found this Link where it has the validations and etc. But I have the following problem: If I leave my Bundle...
asked by 18.09.2014 / 21:52
2
answers

jquery form mask

I'm trying to validate the form field using jquery, if the size is greater than the number of cpf it puts the cnpj mask in that same field var tamanho = $('.cpfcnpj').length; if (tamanho == 11){ $(".cpfcnpj").mask('000.000.000-00'...
asked by 19.11.2015 / 08:49
2
answers

Validating Form with JQUERY Validation + Masks

I'm developing a html form validation plugin for CPF, ZIP, DATA, PHONE. I was able to find one that adds a method to CPF in Jquery Validation, but I'm having trouble editing the code and making it work for the other fields: Can you give me...
asked by 09.04.2015 / 23:11
2
answers

Asp.Net MVC Validators passing through the controller

When we create a project in Asp.Net it by default inserts some validators to be used with Razor, @Html.ValidationMessageFor(model => model.property) . I saw in different projects that these messages are generated by returning the...
asked by 25.08.2015 / 19:46