Académique Documents
Professionnel Documents
Culture Documents
//keypress event
$('input[type="text"').on('keypress', function(){
alert("key press in an input!")
});
Why Use On()?
In most cases, click() and on('click') will both get the job
done. HOWEVER, there is one key difference: