为了测试,我想检查控制台从文本框设置的值是什么,但 IE 工作正常但 IE 10 无法获取值。
$('#refno').getval;
document.getelementById("refno").value;
最佳答案
在 jquery 中使用 val()
$('#refno').val();
在 javascript 中
document.getElementById("refno").value;
关于javascript - 在 IE 10 中使用 id 获取值表单文本框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22808151/