重新校正输入值时如何删除错误消息?

时间:2018-09-27 13:31:54

标签: jquery formvalidation-plugin

验证插件。提交给定元素后,如何禁用在按键上显示错误消息自动验证。

public static void main(String[] args) {

    int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

    AtomicInteger ai = new AtomicInteger(1);
    AtomicInteger index = new AtomicInteger(0);

    Thread t1 = new Thread(new MyRunnable(index, ai, array, 1, 2), "T1");
    Thread t2 = new Thread(new MyRunnable(index, ai, array, 2, 3), "T2");
    Thread t3 = new Thread(new MyRunnable(index, ai, array, 3, 4), "T3");
    Thread t4 = new Thread(new MyRunnable(index, ai, array, 4, 5), "T4");
    Thread t5 = new Thread(new MyRunnable(index, ai, array, 5, 1), "T5");

    t1.start();
    t2.start();
    t3.start();
    t4.start();
    t5.start();

}

1 个答案:

答案 0 :(得分:0)

              $(".myform").validate({
                    onkeyup: false,
                    focusCleanup: true,
               })

当add onkeyup为false且焦点清除为true时。我们期待解决方案。