I have to get combination of key press on a page. I wrote a code
$(document).keydown(function (e) {
if (e.which == 16 && e.which == 48) {
alert('hi');
}
}
but is not working. How can I get the combination of two or more keys?
I have to get combination of key press on a page. I wrote a code
$(document).keydown(function (e) {
if (e.which == 16 && e.which == 48) {
alert('hi');
}
}
but is not working. How can I get the combination of two or more keys?