jQuery validator not working

后端 未结 3 1860
别那么骄傲
别那么骄傲 2021-01-17 06:28

I have included jQuery validate for my site for uploading advertisement file.. I don\'t know why but this is not working.

HTML file is as following:

         


        
3条回答
  •  梦毁少年i
    2021-01-17 06:51

    you should use onsubmit on form , to validate the data .you should also call e.preventDefault() which will prevent the form from firing more than once

    DEMO : http://jsfiddle.net/m27Ljpb9/1/

    提交回复
    热议问题
    Ad Image:
    Ad URL:
    Starting Date:
    Ending Date: