function handleCheckBoxEvent(cb){
var index = 0;
switch (cb.id){
case "cb0":
index = 0;
alert(cb.id);
break;
case: "cb1":
index = 1;
alert(cb.id);
break;
}
}
And i call this when i check the box like the following:
<input id="cb0" type="checkbox" onclick="handleCheckBoxEvent(this);">Frist</label>
I can't figure out why the above switch doesn't work ?
Any help will be very appreciated, Thanks in advance.