I have several checkboxes in a switch statement like the one below:
function whatsChecked(obj) {
var indx = obj.id.substring(obj.id.length-1, obj.id.length);
switch ( indx ) {
case '9':
if (document.sport.soccer_9.checked) {
//window.open.href = "../google.com";;
window.open("../google.com");
}
break;
}
}
}
How can I use a continue button to determine which checkbox was clicked and redirect me to the correct page (instead of giving each checkbox it's own onclick event)?