I have made a div writable by adding contentEditable=”true”.
I want to restrict the text to one line and restrict users to enter multiple lines. How can i do that?
I have made a div writable by adding contentEditable=true. I want to restrict the
Share
Bind a function to the keypress event on the div and disallow the enter button
http://jsfiddle.net/pyeyY/