jqBootstrapValidation icon indicating copy to clipboard operation
jqBootstrapValidation copied to clipboard

Ability to change <form novalidate> to another HTML element

Open matt-e-king opened this issue 11 years ago • 1 comments

Hey there! Great validation plugin. I am using it for a State University, we are implementing animation to the field side errors and making the accessibility aspect conform more to the Web Aim standards. Once we deploy I would be happy to share with you what we did.

I do have a question... we are currently using a CMS known as Ektron. This CMS wraps ALL content in a form tag. Since your plugin requires the form tag with the data attribute "novalidate", I am worried this is going to cause issues, plus I don't want to nest form tags.

I was curious what modifications I need to make in order to change the parent form tag to anything of my choice? For instance a div tag

....
. I don't need it to be a form tag since our CMS will wrap it with its own form tag.

I attempted to hack this, but couldn't figure it out. Any help would be appreciated, I understand if this is outside of the support your are willing to give. Thanks.

Matt King

matt-e-king avatar Jul 18 '13 19:07 matt-e-king

The plugin requires that the controls are in a form tag as it binds to the submit events, however you should be able to use it without the novalidate attribute in most cases.

xarnze avatar Aug 09 '13 17:08 xarnze