42
rated 0 times
[
47]
[
5]
/ answers: 1 / hits: 18183
/ 14 Years ago, sat, september 11, 2010, 12:00:00
OK, so let's say I have this:
$(function() {
$('#good_evening').keyup(function () {
switch($(this).val()) {
case 'Test':
// DO STUFF HERE
break;
}
});
});
... this would only run if you typed Test and not test or TEST. How do I make it case-insensitive for JavaScript functions?
More From » jquery