title: Bootstrap button default type
body: <p>Do Bootstrap buttons default to a specific type if a type is not assigned? I have seen some unusual behaviour in a form that I have:</p>
  
  <pre><code>&lt;form action="blah blah" method="POST" id="blah" autocomplete="off"&gt;
    &lt;div class="modal-container"&gt;
      &lt;div class="modal-dialog modal-dialog-wide"&gt;
              &lt;!-- Button 1 --&gt;
              &lt;button class="close cancel-btn" &gt;&amp;times;&lt;/button&gt;
  
              &lt;div class="modal-content"&gt;
                  &lt;div class="modal-header"&gt;
                  &lt;/div&gt;
                  &lt;div class="modal-body"&gt;
                      &lt;div style="display: none;"&gt;
                      &lt;/div&gt;
                      &lt;div class="input"&gt;
                      &lt;/div&gt;
                      &lt;div class="input"&gt;
                          &lt;input type="password" class="text long" name="password" placeholder="Your password"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="modal-footer"&gt;
                      &lt;ul class="h-list"&gt;
                          &lt;!-- Button 2 Submit --&gt;
                          &lt;li&gt;&lt;button type="submit" class="btn btn-acknowledge main-action"&gt;
                              &lt;i class="icon-btn icon-btn-check"&gt;&lt;/i&gt; &lt;span class="text"&gt;Confirm&lt;/span&gt;
                          &lt;/button&gt;
                          &lt;/li&gt;
                          &lt;!-- Button 3 --&gt;
                          &lt;li&gt;&lt;button type="button" class="btn-cancel close cancel-btn""&gt;Cancel
                          &lt;/button&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This form has three buttons, one with type of submit and another with a type of button. The other 'X' or close button does not have a type specified.</p>
  
  <p>I noticed then when I hit enter on my keyboard, with the modal open, that the modal was closed. The only way I could submit the form was to click on the submit button. The Javascript I have triggers on a submit action. So, I had anticipated the my form would be submitted but instead the form is closed leading me to believe that Bootstrap buttons default to have a type of submit. Is this correct and is there any documentation out there on this? Thanks. </p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I successfully added a type of button to the first button and this seems to have validated my thinking but I would like some clarification on this in the form of documentation or otherwise.</p>