J
J
junior2712015-08-18 02:59:06
css
junior271, 2015-08-18 02:59:06

How to fix form validation on landing page?

there is a landing page where there are feedback forms when you click on the links
324945d7e42f4fc6bbd85dd6d054d4e9.PNG
when you click on "leave a request", the form validation is checked for correctness b7377339397e44b094515c959820a116.PNG
But there is a problem, the check occurs only in the modal window when you click on "FREE
EXPRESS AUDIT", when opening others, validation is not checked.
Can someone suggest what is wrong?
Validation for correctness in the scripts.js
v2.verstkalp.esy.es file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mak Alexey, 2015-08-18
@S-ed

Your script:

$(document).ready(function(){
  $('.my_form').validate({
...

Called only once, when the page is loaded. $('.my_form').validate only processes the first element found, not all possible ones.
$(document).ready(function(){
    $('.my_form').each(function() {
        $(this).validate({
            ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question