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"
Pergunta
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;
Solução 3
For IE 10 try this
cd()
Current window: app.jsp
cd(mainframe) Current window: sb.jsp
$('#comtype').val() "6"
Outras dicas
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