0

Currently I am using a bootstrap validator for input/select fields. What I can't seem to do is turn off the validator for certain inputs. I've tried:

<form id="accordion">
    <input name="name" id="name" novalidate />
</form>

$('#accordion').validate({
     rules: {
         name: {
             required: false  
         } 
     },
     fields: {
         name: {
            required: false,
            validators: {
               required: false
            }
         }
     }
})

None of these worked. I also tried adding "novalidate" and "formnovalidate" to the individual input's but that didn't work either. What am I doing wrong?

Keith
  • 4,059
  • 2
  • 32
  • 56

1 Answers1

0

You should definitely check this post: Form Validation With Bootstrap (jQuery)

I don't think you need to indicate when an input is not required, it's the opposite.

Alexandre Brba
  • 118
  • 1
  • 3
  • 11