Support » Plugin: HTML Forms » Add ‘novalidate’ attribute

  • Resolved aisforadam

    (@aisforadam)


    Hi

    What is the best way to add the ‘novalidate’ attribute to the <form> tag?

    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    You want to do your own validation?
    You can add the novalidate attribute via javascript, here is a jquery example:

    jQuery(‘.hf-form’).attr(‘novalidate’, ‘novalidate’);

    Hope that helps. If you have any questions, please let us know!

    Plugin Contributor Lap

    (@lapzor)

    If you want to add your own custom validation you may want to look at this: https://github.com/ibericode/html-forms/issues/49

    Hey Lap. Thanks for the info! I was hoping to do this without js, but I’ll probably go with the jQuery.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add ‘novalidate’ attribute’ is closed to new replies.