use of switch case using javascript

Rajni.Shekhar
Posted by Rajni.Shekhar under JavaScript category on | Points: 40 | Views : 1259
skelton of switch case in java script for freshers

function useSwitchcase(var strCase)
{
switch(strCase) //case can be anything as per your requirement.
{
case "TEXTBOX"
{
//WRITE CODE HERE
break;
}
case "CHECKBOX"
{
//CODE HERE
break;
}
}
}

Comments or Responses

Login to post response