I am having a weird issue in IE.
I have
The tool variable can be empty and it seems like that I need to have
tool=='' to make IE happy.
//work in IE and other browsers..
if(tool==null || tool==''){Alert('bang!!!');}
//doesn't work in IE but not other browsers.
if(tool==null){Alert('bang!!!');}
What’s going on here?
Try this:
Here,
!toolwill returntrueiftool = nullortool = ''.