Search code examples
htmlformsinputinternet-explorer-9required

HTML5 replacement input required tag for older browsers


I have already implemented the required tag into a selection of forms and input fields throughout a site. I was wondering if their was a script that would automatically perform the HTLM5 required tag functions on older browsers (e.g. IE9). This is so I don't have to edit either the form or input tags and hopefully just include script/css files in a header.

Thanks for any help


Solution

  • What you are looking for is some form validation script/plugin. While all of those validators offer the required functionality, almost all of them offer more additional validation tasks too.

    If you use jQuery, there is the validate plugin

    If you don't use jQuery, take a look at this list of HTML5 polyfills