For example, the comments in SO shows the number of allowable characters remaining. Basically, how do I do that in ruby on rails?
This can be done on JavaScript side, as mentioned in comment.
This page provides nicely explained example: Interactive character limit for textarea using jQuery (it also contains an example of doing it without jQuery).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.