i want to have a text input with autoresize when the user types more then one line.

i tried using html5 `contenteditable` but it's too complicate to get the data. (this solution isn't working for me [Extracting text from a contentEditable div](https://stackoverflow.com/questions/3455931/extracting-text-from-a-contenteditable-div) and also there is this warning " It is also possible that an update to any browser could break this function if they change how they implement contentEditable.")

i also tried [this plugin](http://www.jacklmoore.com/autosize/) but i don't know how to update the textarea content. after typing if i'm checking for `$('textarea').html()` i'm getting empty value.

Edit: basically, the most important thing for me is to get line break if the user press on enter key.