Switch statement in jquery

Ankaprasad
Posted by Ankaprasad under jQuery category on | Points: 40 | Views : 1994

function CallStatusShortForm(status) {
var statusType = parseInt(status);
var shortForm;

switch (statusType) {
case 1:
shortForm = "NI";
break;
case 2:
shortForm = "INT";
break;
}

return shortForm;
}

Comments or Responses

Login to post response