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

How to resolve session timeout issue in JAVA

Blog gives you enthusiasm,zeal

How to encode HTML in JAVA (Remove HTML from your text)