This isn't working:
function checkIt(String rep) {
if (counter[$(rep).val()] == undefined) {
count++;
result = Math.round((count * 100 )/howMany);
$('.percent').text(result);
$('#perc_in').animate({'width': result+'%'}, 500);
counter[$(this).val()] = 1;
$('#counter').text(result);
}
}
Like, at all... <_< I mean I think I am doing the function wrong.
Then inside the case statement I have this:
checkIt($(this).val());