<script type="text/javascript"> $(document).ready(function() { $('#form_reg').validate({ rules:{ "reg_name":{ required:true, minlength:2, maxlength:15 }, "reg_email":{ required:true, email:true, remote: { type: "post", url: "/reg/check_login.php" } }, "reg_pass":{ required:true, minlength:7, maxlength:20 } }, messages:{ "reg_name":{ required:"Вы не указали ваше Имя!", minlength:"От 2 до 15 символов", maxlength:"От 2 до 15 символов" }, "reg_email":{ , remote: "Этот email уже используется другим пользователем", required:"Вы не указали ваш E-mail!", email:"Не корректный E-mail" }, "reg_pass":{ required:"Вы не указали пароль!", minlength:"От 7 до 20 символов!", maxlength:"От 7 до 20 символов!" } }, submitHandler: function(form){ $(form).ajaxSubmit({ success: function(data) { if (data == 'true' ) { $("#block-form-registration").fadeOut(300,function(){ $("#reg_message").addClass("reg_message_good").fadeIn(400).html("Вы успешно зарегестрированы"); $("#form_submit").hide(); }); } else { $("#reg_message").addClass("reg_message_error").fadeIn(400).html(data); } } } ); } }); } ); </script> 

Closed due to the fact that off-topic participants Suvitruf , 0xdb , nörbörnën , Kirill Stoianov , cheops Aug 20 '18 at 17:02 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Suvitruf, 0xdb
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Help, please - Robert Ice

1 answer 1

Unnecessary comma in the "reg_email":{ ,

  • Thank you. And how she appeared there. It seems everything was fine, and then bang and the problem - Robert Ice
  • @RobertIce mark the answer as accepted ^ _ ^ - Suvitruf