How do I determine if variable is undefined or null?
undefined
null
My code is as follows:
var EmpN
I've just had this problem i.e. checking if an object is null. I simply use this:
if (object) { // Your code }
For example:
if (document.getElementById("enterJob")) { document.getElementById("enterJob").className += ' current'; }