How to set value to 0 if it is undefined or null in javascript
Currently i am doing like this but its not working
var option50 =document.getElementById("ctl00_ContentPlaceHolder1_grdWeeks_ctl30_lblWeekTotal1").innerHTML;
if (typeof option50 !== "undefined" && element.value == '')
{
option50 = "0";
alert(option50);
  ...
Go to the complete details ...