Organizational Research By

Surprising Reserch Topic

how do i detect shiftenter and generate a new line in textarea


how do i detect shiftenter and generate a new line in textarea  using -'javascript,jquery,html,css'

Currently, if the person presses enter inside the text area, the form will submit.
Good, I want that.

But when they type shift + enter, I want the textarea to move to the next line: \n

How can I do that in JQuery or plain JavaScript as simple as possible?
    

asked Oct 6, 2015 by yogeshplv
0 votes
14 views



Related Hot Questions

5 Answers

0 votes
NULL
answered Oct 6, 2015 by nimisha.jagtap
0 votes
NULL
answered Oct 6, 2015 by kinnari
0 votes
NULL
answered Oct 6, 2015 by sameer rathore
0 votes
NULL
answered Oct 6, 2015 by loknath.ganji
0 votes
NULL
answered Oct 6, 2015 by badhwar.rohit

...