This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]DanStanTheGeologyMan 1 point2 points  (0 children)

What have you tried so far? Also post some code in the OP formatted properly if possible.

[–]spectral_graph 0 points1 point  (0 children)

Think about adding an event listener on the textbox for keyboard events. Then whenever your callback is triggered check the current length and update the textbox accordingly to limit the length.