title: Form submit button not working in bootstrap modal window
body: <p>I have been trying to make this work but the submit button is not working at all.</p>
  
  <p>The bootstrap modal window I am using is:</p>
  
  <pre><code>&lt;div class="modal fade" id="search" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-header"&gt;
              &lt;a class="close" data-dismiss="modal"&gt;×&lt;/a&gt;
              &lt;h4&gt;&lt;span class="fa fa-search"&gt;&lt;/span&gt; Search Anything...&lt;/h4&gt;
          &lt;/div&gt;          
          &lt;form name='searchdata' action="webarch/search.php" method="post" id="form1"&gt;
          &lt;div class="modal-body"&gt;
                  &lt;div class="input-with-icon success-control"&gt; 
                      &lt;input type="text" class="form-control" id="form1Amount" name="searchvalue" placeholder="Search in users or #hashtags"&gt;&lt;br/&gt;
                      &lt;button type="submit" name='user_search' form="form1" id="user_search" value='user' class="btn btn-danger btn-cons"&gt;&lt;i class="fa fa-user"&gt;&lt;/i&gt; User&lt;/button&gt;
                      &lt;button type="submit" name='tag_search' form="form1" value='tag' class="btn btn-default"&gt;&lt;i class="fa fa-tag"&gt;&lt;/i&gt; Tags&lt;/button&gt;
  
                  &lt;/div&gt;  
          &lt;/div&gt;          
          &lt;/form&gt; 
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Whenever I click the submit buttons, nothing happens and the form doesn't post the values.
  Let me know how to make this work.</p>