title: How to change the code to show the number to a textbox instead in a div?
body: <p>Using AJAX I display a number inside this DIV specsdiv using the jQuery code below.
  However I am trying to display than number in the textbox so I can submit the number. I can not make it submit through the DIV, so how can I change my code to show it in the textbox?</p>
  
  <p>Thank you</p>
  
  <pre><code>&lt;div id="specsdiv"&gt;
      &lt;input name="specs" type="text" value="45"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>this is the jQuery code</p>
  
  <pre><code>function getSpecs(engineId) {
      var strURL = "findSpecs.php?engine=" + engineId;
      var req = getXMLHTTP();
  
      if (req) {
  
          req.onreadystatechange = function () {
              if (req.readyState == 4) {
                  // only if "OK"
                  if (req.status == 200) {
                      document.getElementById('specsdiv').innerHTML = req.responseText;
                  } else {
                      alert("There was a problem while using XMLHTTP:\n" + req.statusText);
                  }
              }
          }
          req.open("GET", strURL, true);
          req.send(null);
      }
  
  }
  </code></pre>