I have been trying to get this to work but I don't know what's going on, the code I have:
$('#buscar-producto').on('keydown', function(e){
console.log('hello');
console.log(e.keyCode);
});
It works on computers, but not on mobile..
EDIT: I need to get the keyCode when a key is pressed...