Max Length Counter with Warning

JavaScript Medium 4 views
Back to Questions

Problem Description

You have and . Show how many characters left. If limit exceeded, add class bad on #text.

Input Format

No input.

Output Format

No output (DOM change).

Constraints

Assume #text exists with data-max and #left span exists.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next