Welcome Guest, Not a member yet? Register   Sign In
unwanted novidalidate attribute in form
#1

(This post was last modified: 03-20-2018, 07:02 AM by neuron.)

hi, 

When I use form_open with attributes as below:
PHP Code:
form_open('auth/reset_password/' $code, array('class' => "forget-form"'style' => "")) 
it outputs
PHP Code:
<form class="forget-form" action="auth/forgot_password" method="post" style="" novalidate="novalidate"
 Why is there novalidate tag in form?
and how to get rid of it?
Reply
#2

@neuron,

I use that code in my forms and it does not do that. What version of CI are you using?
Reply
#3

Are you using a JavaScript based validation tool? If so that's what's adding novalidate="novalidate" so that the browser don't validate your form, but your JavaScript takes priority.
Reply
#4

(03-20-2018, 08:03 AM)jreklund Wrote: Are you using a JavaScript based validation tool? If so that's what's adding novalidate="novalidate" so that the browser don't validate your form, but your JavaScript takes priority.

Thanks jreklund, shame on me  Blush  . I should guess it. I am using Metronic Dashboard template. It's JS put those attributes.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB