Validate prefilled jQuery form (invalidate on first field clear, ASP.NET and unobtrustive)

前端 未结 3 2038
庸人自扰
庸人自扰 2021-01-06 17:21

I have a form that can be filled, saved, loaded and re-edited.

When it is loaded and re-edited, it probably begins its life valid. When a field is valid upon

3条回答
  •  -上瘾入骨i
    2021-01-06 17:52

    This constructor works for me:

    $('form').validate({
        onfocusout: function(element) {
           this.element(element);
        }, ...
    });
    

提交回复
热议问题