title: How could I show invalid validation border on input with a button in Bootstrap?
body: <p>How does Bootstrap handle invalid validation error border on an input (with a button)? From the Bootstrap documentation I <a href="https://getbootstrap.com/docs/3.4/css/#forms-control-validation" rel="nofollow noreferrer">read</a> the following:</p>
  
  <blockquote>
    <p>Bootstrap includes validation styles for error, warning, and success
    states on form controls. To use, add <code>.has-warning</code>, <code>.has-error</code>, or
    <code>.has-success</code> to the parent element. Any <code>.control-label</code>, <code>.form-control</code>,
    and <code>.help-block</code> within that element will receive the validation
    styles.</p>
  </blockquote>
  
  <p>In accordance with any information provided above, I managed the following fiddle:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-12"&gt;
        &lt;div class="form-group has-error"&gt;
          &lt;label for="exampleInput1"&gt;Label&lt;/label&gt;
          &lt;div class="input-group"&gt;
            &lt;input type="text" class="form-control"&gt;
            &lt;div class="input-group-btn"&gt;
              &lt;button type="button" class="btn btn-default" &gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/button&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How should I fix the button's side border?</p>
  
  <p><a href="https://i.stack.imgur.com/tr5ng.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tr5ng.png" alt="enter image description here"></a></p>