Having this line of code:
@Html.TextArea("userInput")
How to limit the number of characters in the userInput ?
This should work.
@Html.TextArea("userInput",new { maxlength=50 })