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

How to get counter to reset after submit (ajax) #11

Open
sincero opened this issue Jun 24, 2012 · 2 comments
Open

How to get counter to reset after submit (ajax) #11

sincero opened this issue Jun 24, 2012 · 2 comments

Comments

@sincero
Copy link

sincero commented Jun 24, 2012

I have a form thats submitted with ajax, and the counter shows the remaining characters (if any) and won't update until a user starts typing again. Any way to reset the count on submit?

@aaronrussell
Copy link
Owner

At the moment no, you'll have to manually manipulate the counter with jQuery on your submit method:

$('.your-counter').text(0);

Although there should probably be a better way. I'll leave this open as a possible feature.

@sincero
Copy link
Author

sincero commented Jun 28, 2012

hey thanks! This works like a charm. this will do the job :) For others wondering, just set the text number to the max amount of characters you allowed.

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

2 participants