event.keyCode 13 on div

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    event.keyCode 13 on div

    Is it possible to add action to div
    I want to check the text typed into the div everytime somebody presses enter
    thank You
    Last edited by oll3i; Feb 19 '08, 03:30 PM. Reason: typo
  • mrhoo
    Contributor
    • Jun 2006
    • 428

    #2
    How are you typing text into a div?

    Ordinarily the window or body and textareas and inputs are the only elements that handle key events, unless you are using a content editor object.

    Comment

    • oll3i
      Contributor
      • Mar 2007
      • 679

      #3
      my div is editable :)

      here the code
      <div id="editor_disp laying_text" contenteditable ="true" indicateeditabl e="true">
      </div>

      Comment

      Working...