I searched the forums but could not find an exact answer for my question (Maybe I search in a wrong way).
What I need is a javascript code which writes <p> to my text area when Enter key is pressed. (Or possibly changes the content of the form text area without showing the users.)
Enter acts to submit a form that only contains one field in the form provided that it is the only form on the page.You can therefore attach the Javascript to the onsubmit event handler for that form.
I assume you would want to add a </p> as well as the <p> as one without the other is invalid.
Bookmarks