Bind a function to the keypress event of each matched element.
Example:
$("p").keypress( function() { alert("Hello"); } );
HTML:
<p>Hello</p>
Result:
<p onkeypress="alert('Hello');">Hello</p>
Lean jQuery and AJAX from basic to professional level, by heart! I have setup this blog for those who have great intension and interests in DHTML programming. Basically I will focus here to describe jQuery basic and advance functions and then explain through simple and practical examples (to build AJAX based applications) so that learner can get maximum understanding.
