M
M
Matsun2017-03-14 15:45:31
JavaScript
Matsun, 2017-03-14 15:45:31

Unobtrusive AJAX form validation not working?

Make a site on ASP NET MVC.

The form is loaded from the Ajax server with a request, which is why (I assume) client-side validation does not work for it. I tried to insert the form into the code without ajax - everything works.

Is there a way to asynchronously validate a form that I have loaded after the page has loaded (this form was itself loaded by ajax)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Kit, 2017-03-14
@ShadowOfCasper

The fact is that if the ajax form validation script was loaded before the markup of this form, then it will not work. You need to wrap all your ajax form validation in a separate function and call it after pulling from the form server itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question