1eventTarget.addEventListener("keydown", event => {
2 if (event.isComposing || event.keyCode === 229) {
3 return;
4 }
5 // do something
6});
1 // Similar to KeyUp but just called on input change (optimal for AJAX calls)
2 var input = $('#formID').find('input[type="text"]');
3 input.on('input',
4 function(){
5 console.log (input.val());
6 });