jQuery UI Dialog validation without using <form> tags

前端 未结 11 1763
北荒
北荒 2020-12-23 20:40

http://bassistance.de/jquery-plugins/jquery-plugin-validation/ looks to be the best jquery validation plugin out there. I can\'t seem to get it working in the jQuery UI dial

11条回答
  •  佛祖请我去吃肉
    2020-12-23 21:13

    Try giving your form an id like "myform".

    Then try adding this call to the onclick event of your clicktest anchor :

    onclick='return($("#myform").validate().form());'

    instead of doing the validation in the document.ready.

提交回复
热议问题