darrentaytay / jquery-character-counter

A simple, Twitter style character counter for HTML input fields.
51 stars 31 forks source link

Support multiple counters on one page #10

Closed JamesSkemp closed 9 years ago

JamesSkemp commented 9 years ago

I have a form that has over 20 fields on it that need to have a character counter displayed.

Calling $("textarea").characterCounter(); results in each textarea getting a counter, but they all share the same value.

Same issue if I attach characterCounter() to two different ids.

It would be awesome if this supported the ability to add counters for multiple fields on one page.

darrentaytay commented 9 years ago

@JamesSkemp sorry you're experiencing this issue.

I'll hopefully have a look at that today and try get it sorted.

neuropass commented 9 years ago

+1 This would be great.

darrentaytay commented 9 years ago

@JamesSkemp @neuropass sorry for the delay - I've pushed a change which will fix this issue.

Cheers, Darren

JamesSkemp commented 9 years ago

Sorry Darren, took a few days to get back to the project.

Works great! Thanks for the quick turnaround and addition!

darrentaytay commented 9 years ago

Glad it's working fine @JamesSkemp

Cheers, Darren