title: Bootstrap - Set textbox value on modal window
body: <p>I've tried to bind the event 'show' in my modal but nothing happens when it's shown.<br>
  Here's the code that was supposed to work.<br>
  The alert is not beeing displayed.</p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
              $('#myModal').bind('show',function()
              {
                  alert('howdy');
                  $(".modal-body #nome").val('bosta');
              });
          &lt;/script&gt;
  </code></pre>
  
  <p><br>
  Modal window code:<br></p>
  
  <pre><code>&lt;div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;×&lt;/button&gt;
                  &lt;h3 id="myModalLabel"&gt;Minha Conta&lt;/h3&gt;
              &lt;/div&gt;
  
  
  
              &lt;div class="modal-body"&gt;
                  &lt;form class="form-horizontal" id="mConta"&gt;
                      &lt;div class="control-group"&gt;
                          &lt;label class="control-label"&gt;Nome&lt;/label&gt;
                          &lt;div class="controls"&gt;
                              &lt;input id="nome" name="nome" type="text" placeholder="" class="input-xlarge" required=""&gt;
  
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                  &lt;/div&gt;
              &lt;/form&gt;
  
  
  
              &lt;div class="modal-footer"&gt;
                  &lt;button class="btn" data-dismiss="modal" aria-hidden="true"&gt;Cancelar&lt;/button&gt;
                  &lt;button type="submit" class="btn btn-primary"&gt;Salvar&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>