title: My input value's on dialog box form doesn't update
body: <p>I'm looking for a solution to my problem. I couldn't find and answer, maybe because i don't know how to explain my problem in a search question.. </p>
  
  <p>I have a table with registries, and in everyone, i have and edit button, who open a bootstrap dialog, and show a form with the values (obtain by ajax) of that registry:</p>
  
  <pre><code>$("[href=edit]").click(function(e){
      e.preventDefault();
      var id = $(this).attr("data-id");
      $('#editModal').modal('show');
  
      $.post("tasas/get/",{id: id}, function(data){
          var form = $(data).find("div#editForm");
           $('.modal-body').html(form);
           $('#editModal').on("click","#acceptButton",function(){ 
              var concept = $('.modal-body [name=concept]').val();
              alert(concept);
              $('#frmEdit').submit();
          });
      });
  
  
   });
  </code></pre>
  
  <p>the $.post("tasas/get") return me a complete site, where i find specifically the div containing the form:</p>
  
  <pre><code>    &lt;div id="editForm"&gt;
  &lt;form name="editRegistry" method="post" id="frmEdit" action=""&gt;
      &lt;input type="hidden" name="codigo" value="&lt;?=$code?&gt;"&gt;
      &lt;label&gt;&lt;span&gt;Concept&lt;/span&gt;&lt;/label&gt;
      &lt;input type="text" name="concept" value="&lt;?=$concept?&gt;" /&gt;
      &lt;label&gt;&lt;span&gt;Tipo&lt;/span&gt;&lt;/label&gt;
      &lt;select name="tipo"&gt;
          &lt;option selected="selected" value="&lt;?=$tipo?&gt;"&gt;&lt;?=$tipo?&gt;&lt;/option&gt;
          &lt;option value="$"&gt;$&lt;/option&gt;
          &lt;option value="%"&gt;%&lt;/option&gt;
      &lt;/select&gt;
      &lt;label&gt;&lt;span&gt;Valor&lt;/span&gt;&lt;/label&gt;
      &lt;input type="text" name="valor" class="small" value="&lt;?=$valor?&gt;" /&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Where the values are set by php results. Anyway, when i alert the concept that I have change on the form at the open dialog, it always show me the original value. Example:</p>
  
  <p>The form is set with the concept value: "A". I change it to "B" on the form, and when I click the acceptButton, the alert show me "A" inside of "B", this makes that I couldn't edit the registry.</p>
  
  <p>Anyone know why?</p>