SyntaxFix
Write A Post
Hire A Developer
Questions
.val() always works with textarea elements.
.val()
textarea
.text() works sometimes and fails other times! It's not reliable (tested in Chrome 33)
.text()
What's best is that .val() works seamlessly with other form elements too (like input) whereas .text() fails.
input