Всем привет.
Имеем форму:
<form id="order_form" name="order_form" action="/order/create/" method="post">
<input type="text" name="discount" id="discount" class="text" />
<input type="submit" name="submit" id="submit" class="text" />
</form>
Имеем js код:
$("#order_form").validate({
      rules: {
         "discount": {
            remote: {
                url: "/order/CheckPromo/",
                type: "post",
               async: false
            }
         }
      },
      messages: {
         "discount" : "Неверный код"
      },
      submitHandler: function(form) {
         alert('OK!');
      },
      errorPlacement: function(error, element) {
      }
    });
Вот почему-то запрос до /order/CheckPromo/ проходит отлично (пробовал возвращать и 'false' и 'true'), но НЕ устанавливается статус ошибки (class="error") у поля discount. Помогите пожалуйста.