title: Jquery children select
body: <p>How do I select the button with class <code>btnOk</code> inside of the <code>generic-modal-footer</code>?
  Thanks in advance. </p>
  
  <pre><code> $('#generic-modal-footer &gt; .btnOk').click(function () {
      alert('cheguei');
      $('#genericModal').modal('hide');
  });
  
   &lt;div class="modal-footer" id="generic-modal-footer"&gt;
      &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Cancelar&lt;/button&gt;
      &lt;button type="button" class="btn btn-primary btnOk" id="generic-modal-button"&gt;&lt;/button&gt;
    &lt;/div&gt;
  </code></pre>