Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire onMaxCount callback only once #23

Open
katart opened this issue Oct 9, 2013 · 1 comment
Open

Fire onMaxCount callback only once #23

katart opened this issue Oct 9, 2013 · 1 comment

Comments

@katart
Copy link

katart commented Oct 9, 2013

I would like to append some alert text to the DOM after the user reaches the Max word count. I'm using strictMax: true and the onMaxCount callback function.

The alert text is continually being appended when the keyboard is pressed. How can I have this text append only once?

@katart
Copy link
Author

katart commented Oct 9, 2013

I've figured out a solution:

if( $('.alert-form').length == 0 ) countable.after('You have reached your 250 word limit.');

@katart katart closed this as completed Oct 9, 2013
@katart katart reopened this Oct 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant