HTML textarea maxlength
Author | Message |
---|---|
Posey | # Posted two hours ago |
![]() |
Hello everyone, <textarea name="text" rows="9" cols="55" maxlength="495"></textarea>I have my 9 lines and 55 columns, except that in the last line I cannot enter more than 39 characters out of 55, 476 characters out of 495 in total. Do you have any idea why it's behaving that way. |
Ads | |
Celeri | # Posted two hours ago |
![]() |
Careful, chariot returns (CRLF) are included in the |
Posey | # Posted one hour ago |
![]() |
Aaaaah, I knew it was a stupid error! |
Celeri | # Posted one hour ago |
![]() |
Your approach doesn't seem good. Display how many empty characters are left, the CRLF will whatever happens be part of the total. <textarea name="text" rows="9" cols="55" maxlength="495"onkeyup= "console.log('Still: ', this.maxLength - this.value.length)"></textarea> |
Kegon | # Posted 7 minutes ago |
![]() |
That's some tard-level shit code op. |
Post a reply
Please be kind and courteous in your replies. Don't roast others for no reason.