html5 required and jQuery submit()

后端 未结 9 593
我在风中等你
我在风中等你 2020-12-09 07:56

I\'m trying to implement html5 into a form, but I came with a problem when I submit the form through jquery and try to use the html5 \"required\" attribute.

Here is

9条回答
  •  执笔经年
    2020-12-09 08:37

    You could call a function instead and use that function to check if all the nodes with the required attribute have a value.

    There are some plugins available to do this: http://thechangelog.com/post/1536000767/h5validate-html5-form-validation-for-jquery

提交回复
热议问题