title: How to get text box value in JavaScript
body: <p>I am trying to use JavaScript to get the value from an HTML text box but value is not coming after white space </p>
  
  <p>For example:</p>
  
  <pre><code>&lt;input type="text" name="txtJob" value="software engineer"&gt;
  </code></pre>
  
  <p>I only get: "software" from the above. I am using a script like this:</p>
  
  <pre><code>var jobValue = document.getElementById('txtJob').value
  </code></pre>
  
  <p>How do I get the full value: "software engineer"?</p>