title: Set the value of textbox in Bootstrap Modal from label text
body: <p>I am showing the bootstrap modal on clicking the hyperlink.Beside the hyperlink there's a label in which some text is getting printed dynamically.</p>
  
  <p>I am getting the text of that specific label using jquery to print it in Textbox present in Bootstrap Modal.</p>
  
  <p>The text is retrieved very fine but i could not get successfull in showing this text is bootstrap Modal Textbox.</p>
  
  <p>Here is my Jquery Code :</p>
  
  <pre><code>&lt;script&gt;
      $(function () {
          $(".edit").click(function () {    
              var tr = $(this).parent().parent();
              var tdRecords = $(tr).children();
              var CurrValue = $(tdRecords[0]).text();
              var NewValue = $(tdRecords[1]).text();
              alert(CurrValue); //alert is showing the value fine
              $("#Curr_Val").val(CurrValue); //not working
              $('#myModal').modal('show');
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Here is my Modal Code :</p>
  
  <pre><code>&lt;div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
  
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
                  &lt;h4 class="modal-title" id="myModalLabel"&gt;Edit Information&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                &lt;div class="row"&gt;
                    &lt;div class="col-md-3"&gt;
                        Current Value :
                    &lt;/div&gt;
                    &lt;div class="col-md-6"&gt;
                        &lt;asp:TextBox CssClass="txtstyle" runat="server" ID="Curr_Val"&gt;&lt;/asp:TextBox&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                  &lt;div class="row"&gt;
                    &lt;div class="col-md-3"&gt;
                        New Value :
                    &lt;/div&gt;
                    &lt;div class="col-md-6"&gt;
                        &lt;asp:TextBox CssClass="txtstyle" runat="server" ID="New_Val"&gt;&lt;/asp:TextBox&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-primary"&gt;Save Changes&lt;/button&gt;
                  &lt;button type="button" class="btn btn-primary" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The value is getting printed in alert very fine but it's not getting printed in textbox.</p>
  
  <p>Someone Please Help me what am I missing.</p>
  
  <p>Thanks in advance</p>