I passed all the first 5 tests, but get stuck on the last one:
If character count is greater than or equal to 50 , the user shouldn’t be able to enter more characters.
I tried
adding maxlength=50 to the textarea
use javascript to set the textarea as readonly or disabled whenever the text length in the textarea reached 50 or above.
both of them failed. Is there ant other way to prevent the textarea from accepting more input?
IMHO, setting maxlength attribute on the textarea should be considered as a vaild answer.
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.
The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.