문제

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