Jquery validation plugin | resetForm is not working

前端 未结 4 2149
小鲜肉
小鲜肉 2020-12-30 07:44

I am trying to clear all error messages as well error highlighting when user click on the clear form button, below are actual requirements

  1. Validat
4条回答
  •  灰色年华
    2020-12-30 08:41

    All error messages will be cleared

    $('.btn-reset').on('click', function () {
        $( "label.error" ).remove(); 
    });
    

提交回复
热议问题