jQuery validation onblur

前端 未结 6 1269
迷失自我
迷失自我 2020-12-01 12:26

I am trying to get the jQuery validation working on a webpage I am creating. I have about 6 different fieldsets that contain the page\'s details. I am using this as I am hid

6条回答
  •  没有蜡笔的小新
    2020-12-01 12:45

    Thia code will not fire validation onkeyup, but on blur "lost focus" the validation will be fire, as will once the user starts to edit the field, validation message will disappear. find more interesting other customization on this ref: https://jqueryvalidation.org/category/plugin/

    $('#frm').validate({
                onkeyup: false,
                focusCleanup: true
            });
    

提交回复
热议问题