I am trying to use JavaScript to get the value from an HTML text box but value is not coming after white space
For example:
<input type="text" name="txtJob" value="software engineer">
I only get: "software" from the above. I am using a script like this:
var jobValue = document.getElementById('txtJob').value
How do I get the full value: "software engineer"?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…