jQuery validate plugin on DIV

前端 未结 5 1933
太阳男子
太阳男子 2020-11-29 08:29

I am trying to use the validate plugin on a div as shown in the answer to this question:



        
5条回答
  •  误落风尘
    2020-11-29 08:37

    You're missing a closing bracket. Try this instead:

    $("#pseudoForm").validate({
        onfocusout:true,
        rules:{
            first_name:"required",
            last_name:"required"
        }
    });
    

提交回复
热议问题