keypress event in jquery add text to div by id

keypress sends an event to an html element when a keyboard key is pressed. It does not detect special keys like Shift, Esc and Delete.

In the following example we write anything inside a form and this text will be reflected inside an html paragraph.

  • val(). Gets the value of the selected item.
  • html(). Allows you to write html content inside the selected element.
Comments

PHP Captcha


Interesting Articles