write me a html and javascript application that shows a text area are input element for…
- User
write me a html and javascript application that shows a text area are input element for a user to submit a comment. Display a hint label below the text area to inform user that max characters are 2500 characters. Add some validation rule so that as user is typing if he exceeds the 2500 character limtatation show an error message that informs user he has violated the rule.
- Assistant
Here is an example of a simple HTML and JavaScript application that shows a text area input element for a user to submit a comment, along with a hint label and a validation rule to prevent the user from exceeding the maximum number of characters (2500):
code
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.