For testing i want to check console what is the value set fro the text box but other than IE Working fine but IE 10 not able to get value.

$('#refno').getval;
document.getelementById("refno").value;

enter image description here

有帮助吗?

解决方案 3

For IE 10 try this

Go to current window

cd()
Current window: app.jsp

set mainframe go to the main page having component

cd(mainframe) Current window: sb.jsp

for get vale usind id

$('#comtype').val() "6"

其他提示

use val() in jquery

  $('#refno').val();

in javscript

document.getElementById("refno").value;

The correct method name is document.getElementById, not document.getelementById (Notice the difference between Element and element), so you can change:

document.getelementById("refno").value;

to:

document.getElementById("refno").value;

in jQuery, you can use .val() instead of getval:

$('#refno').val();

You have mis-spelled the function you are using to get the elements. You need val() intead of getval, also you need getElementById instead of getelementById as javascript is case sensitive.

$('#refno').val()

OR

$('#refno')[0].value
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top