jQuery Validation - Hide Error Message

后端 未结 10 1658
醉梦人生
醉梦人生 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:44

    Use the Validator errorPlacement option with an empty function:

    $("selector").validate({ errorPlacement: function(error, element) {} });
    

    This effectively places the error messages nowhere.

提交回复
热议问题