I am getting the following JavaScript error:
'value' is null or not an object
Can someone please let me know what is the best way to check whether an object's value is NULL in JavaScript as I have been using:
if ((pNonUserID !== "") || (pExtUserID !== "")){
Is this correct or is there a better way?
null. IfpNonUserID = null;then the expression will evaluate totrue. But I think the error message is not related to the code you posted. The error is somewhere else.!=it would have worked (since it checks the value, andnull==""). See my answer for more info.