Is there a function in jquery.validate that will reset a single field like resetForm does for a form?

后端 未结 6 2323
旧巷少年郎
旧巷少年郎 2021-02-18 15:59

I want to call a jquery function to manually remove errors from a single field and reset the error markup. Is there a function that does this that would be similar to the reset

6条回答
  •  不思量自难忘°
    2021-02-18 16:15

    You can do the following to validate a single field:

    $('#your_field').valid();
    

    Maybe it will help someone :-)

    Thanks!

提交回复
热议问题