title: How to use custom validation function with Bootstrap's Validation?
body: <p>Regarding to <a href="https://stackoverflow.com/a/29759623/931358">this answer</a> my following code should work:</p>
  
  <pre><code>&lt;form data-toggle="validator"&gt;
    &lt;div class="form-group has-feedback"&gt;
      &lt;label for="exampleInputText"&gt;Name&lt;/label&gt;
      &lt;input type="text" class="form-control" id="exampleInputText" placeholder="text" data-odd&gt;
      &lt;span class="glyphicon form-control-feedback" aria-hidden="true"&gt;&lt;/span&gt;
      &lt;div class="help-block with-errors"&gt;&lt;/div&gt;
  &lt;/form&gt;
  
  &lt;script type="text/javascript"&gt;
    $('form').validator({
      custom: {
        'odd': function($el) { return false }
      },
      errors: {
        'odd': 'error message'
      }
    })
  &lt;/script&gt;
  </code></pre>
  
  <p>But it does not work - why?</p>