I want to add the <br/> (newline) to text box when user clicks on the enter button.
How can I achieve it in jquery onkeyup event. Can one show me the example or any good website implementing it.
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Copied from here Caret position in textarea, in characters from the start See DEMO.
Well, i guess all text-editors (WYSIWYG) do it all the time.