$(window).keypress(function(evt) {
console.log(evt.which)//output is 97 when pressed a
})
But
$(window).keyup(function(evt) {
console.log(evt.which) //output is 65 when pressed a
})
My question is why they are giving different output
$(window).keypress(function(evt) {
console.log(evt.which)//output is 97 when pressed a
})
But
$(window).keyup(function(evt) {
console.log(evt.which) //output is 65 when pressed a
})
My question is why they are giving different output