AnsweredAssumed Answered

Textbox value undefined in Javascript

Question asked by harman123 on Apr 13, 2017
Latest reply on Apr 20, 2017 by harman123

I have a textbox with Client ID JavaScript variable name set to 'UserMnemonicId'

On form load i call javasrcipt function and display alert .

 

NWF$(document).ready(function(){
alert('test function');
alert(NWF$('#UserMnemonicId').val());
});

 

I get both the alerts but for the second alert it displays 'undefined'

Don't know why the textbox value is displayed as 'undefned'

Is there anything that i am doing wrong or missing?

Outcomes