|
|
Browse by Tags
All Tags » javascript regu... » new line
-
This has been driving me crazy all day.
Is there any way to match newlines or linebreaks in a textarea html element. I am not talking about when a user adds a line break by hitting enter for example. I am talking about when the browser automatically returns a newline or wraps the line. These breaks need to be matched via ...
-
I am trying to write a script that updates HTML on the onKeyUp of a textbox of a form. The HTML is basically a preview of what it will look like when the form is submitted and entered into a database.
The problem is, I want to replace all new lines with "<br />\n". So when the user is typing and they hit return it should be ...
|
|
|