title: How to change value in textbox with JQuery Ajax?
body: <p>I'm currently working on an ajax call that will update the value of a textbox:</p>
  
  <pre><code>&lt;div id="PNIncrementDiv" style="position:absolute; left: 730px; top: 15px; width: 350px;" class=""&gt;
  
   &lt;input id="TBIncrementTextBox"  class="textbox" type="text" style="position:absolute; top:25px; left: 75px; width: 60px; height: 40px;" runat="server"  /&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>My ajax function, which returns an integer, and Is tested to be returning the correct answer is below:</p>
  
  <pre><code>getIncrement: function (id) {
                  $.ajax({
  
                      url: "&lt;%=Session("BaseUri")%&gt;" + '/handlers/DataEntry/SPC_InspectionInput.ashx',
                      type: 'GET',
                      data: { method: 'getIncrement', args: { IncrementId: id} },
                      success: function (data) {
                          console.log(data);
                          Inc_Num = data;
                          $('#TBIncrementTextBox').val(data.toString());//nothing happens!
  
                      },
                      error: function (a, b, c) {
                          alert(c);
                      }
                  });
  
              }
  </code></pre>
  
  <p>However, when I try to change the value of the textbox, nothing happens.  What am I doing wrong?</p>