You should use .value
myTextArea.value
More Related Contents:
- Is it possible to append to innerHTML without destroying descendants’ event listeners?
- How to get the caret column (not pixels) position in a textarea, in characters, from the start?
- Creating a textarea with auto-resize
- Rendering HTML inside textarea
- Show/hide ‘div’ using JavaScript
- Why is “element.innerHTML+=” bad code?
- How to replace innerHTML of a div using jQuery?
- nodeValue vs innerHTML and textContent. How to choose? [duplicate]
- Chrome counts characters wrong in textarea with maxlength attribute
- How do you get the cursor position in a textarea?
- finding “line-breaks” in textarea that is word-wrapping ARABIC text
- React.js: Set innerHTML vs dangerouslySetInnerHTML
- Use tab to indent in textarea
- Cannot set property ‘innerHTML’ of null
- textarea character limit
- How to get number of rows in using JavaScript?
- Understanding what goes on with textarea selection with JavaScript
- Limiting number of lines in textarea
- How FileReader.readAsText in HTML5 File API works?
- how to get the value of a textarea in jquery?
- How to read line by line of a text area HTML tag
- Finding number of lines in an html textarea
- Javascript – innerHTML not working with HTML select menus
- Append HTML to container element without innerHTML
- Alternative for innerHTML?
- Javascript detect scrollbar in textarea
- Set cursor to specific position on specific line in a textarea
- How do I make a textarea an ACE editor?
- Max characters in textarea with jquery
- Find caret position in textarea in pixels [duplicate]