All Questions
262 questions
0
votes
0
answers
420
views
Reset/Reinitialize jQuery unobtrusive validation for dynamic AJAX-forms to clear old validation rules
I am using ASP.NET MVC 5 in combination with the client-side validation and forms in modal dialogs loaded via AJAX.
This all works fine, BUT if I open and post a lot of these dialogs/forms without ...
0
votes
0
answers
225
views
jquery validation of multiselect on form submission
this is my cshtml code for multiselect the cshtml code
<select class="chosen-select" multiple data-placeholder="Staff ID/ Student name" asp-for="User Ids" ...
0
votes
0
answers
97
views
How i did use jquery validate in new dynamic html?
I am calling a view(partial view) via jquery modal, and within that modal, I have a button that does the action of creating a new employee. But I'm not managing to make, if the spaces are not filled ...
0
votes
0
answers
51
views
JQuery Validation Empties JS Object
I am using jQuery Validation to validate a form in a ASP.NET MVC application.
I am using Ajax to submit a form, the form has several basic fields but also builds a js object which
needs to be ...
0
votes
1
answer
294
views
Jquery.Validate stops validating any controls once I add @Html.DropDownListFor to the form
I have a form with multiple controls that ARE validated using Jquery.Validate. They all work until I add a new row with a @Html.DropDownListFor. No errors appear in the console, the validator ...
0
votes
0
answers
992
views
Validation does not work when using AJAX request [duplicate]
I'm trying to validate fields with ValidationMessageFor, and everything works fine if you submit the form using Html.Beginform, but if I use an AJAX query, then validations no longer work.
My Code
...
1
vote
1
answer
2k
views
Show message to jquery validation with Ajax.BeginForm Asp.Net MVC
I have tested jquery validate with Ajax.BeginForm from asp.net mvc and although the form validate, the error message is not displayed if the form is not valid.
FORM CODE:
@using (Ajax.BeginForm("...
1
vote
1
answer
603
views
How do I resolve jquery-validate + bootstrap has-error conflict
I'm sorry if this is an easy fix, and the wall of text but I've scoured the net and this site and found many solutions, none address my problem:
I have a server-side validation to ensure no company ...
0
votes
1
answer
1k
views
jQuery Validate SubmitHandler with Ajax Submission Not being hit
On my view I want to submit the form to the controller using ajax. I have this:
@section scripts{
@Scripts.Render("~/bundles/jqueryval")
<script>
$(document).ready(function() {...
-1
votes
1
answer
98
views
Either the Edit bootstrap modal works, or the Jquery .validate function works
I have a an Edit Popup modal in my Main View
Load.cshtml
<div class="modal fade" id="EditVolunteerModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static">
<div ...
-3
votes
1
answer
1k
views
jQuery Validation for Input Type File
I am using jQuery validation on my form with couple of textboxes, drop down lists and a file input. I've also added additional_methods.js for extension method. It works perfectly, except for file ...
1
vote
1
answer
92
views
jQuery validation plugin doesn't validate my form
My main goal is check the value that user enter in input, exists in database. So my validation looks like:
$('#addForm').validate({
rules: {
SendingName: {
...
0
votes
1
answer
631
views
Displaying correct panel using jQuery.Validate
I have a tabbed panel like below:
Student tab has StudentName and Mark tabs has Math. This is my Model:
public class StudentViewModel
{
[Required]
public string StudentName { get; set; }
...
0
votes
1
answer
37
views
Custom jQuery.validate validation rule causing the <input> after the target to become required on Internet Explorer
I have a long form in an ASP.NET MVC application view, with a particular input "PaxCount" that needs to equal the sum of 2 other fields: AdultCount and ChildCount (I don't want to determine the value ...
2
votes
0
answers
80
views
jQuery Validate is not working along with Unobtrusive Validation plugin [duplicate]
I have a MVC View which is driven by a Model with some Validation attributes. But for a couple of fields where I need to do some custom validation which is not supported with C# attributes. I am ...