JavaScript_Solution_21July2017

Hello Friends,

While I start to work in javascript, I found the most important issue we are facing as follows....
---------------------------------------------------------------------------------------------------------------
ISSUE:-

1) var fromDate=document.getElementById("fromDate").value;

      if(fromDate !== "undefined" && fromDate!=null)    etc.......

-----------------------------------------------------------------------------------------------------------------
Solution:-

1) You have to sipmly check
 
   if(fromDate);

No need to write extra code  for that....
--------------------------------------------------------------------------------------------------------------------------

Thank you
Pavan Dhokne

Comments

Popular posts from this blog

Key Features that Make Java More Secure than Other Languages

VPS Detail and Amazon Linux also we can use VPS.

Understanding Oauth2 (you have a option of login)