jQuery Validation - Hide Error Message

后端 未结 10 1829
醉梦人生
醉梦人生 2021-02-05 03:39

I\'m using the jQuery Validation plugin and want to disable the or element/container it creates to display the error \'message\'.

Basically, I want the input element wi

10条回答
  •  甜味超标
    2021-02-05 03:59

    You can add an onfocus and an onkeyup that would remove the error message.

    $("selector").validate({
        onkeyup: false,
        onfocusout: false
    });
    

提交回复
热议问题