I am trying to use JavaScript to get the value from an HTML text box but value is not coming after white space
(我正在尝试使用JavaScript从HTML文本框中获取值,但值不是在空格之后)
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"?
(我如何获得全部价值:“软件工程师”?)
ask by Gnaniyar Zubair translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…