darrentaytay / jquery-character-counter Goto Github PK
View Code? Open in Web Editor NEWA simple, Twitter style character counter for HTML input fields.
A simple, Twitter style character counter for HTML input fields.
The following error is thrown when calling the characterCounter() in IE8 (e.g. $('#textareaID').characterCounter({ ...options... }) ):
Expected identifier
Object doesn't support this property or method
I'm not sure if you are aiming to support IE8 as I couldn't see any supported browser details, so I'm not sure if this is really a problem. I've tried to identify which property or method is the offender but have been unable to find it thus far. Hopefully someone else more knowledgeable than me might be able to figure it out.
I just noticed that this plugin has no license file at all. Can you please add a license to this project?
Hello,
I want change the limit based on user input. If user is uploading file along with writing text on textarea. His limit will be less but if he is not uploading file his limit will be more. Can it be done. Can we update limit later on.
Thanks,
Samir
Hi,
Not sure if this is a bug or simply never implemented. This plugin doesn't work on input fileds.
Is there solution/hack to allow me to use it on input fields as well?
Thanks a lot.
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.
counterCssClass option can only be used to override the counter classes. However, it would be useful to be able to add custom classes to the element instead of overriding the one and only class that is available right now
how to block characters type in when limit reached?
Hi,
Can you add semantic version to the file? Now it says 1.x, a old version I have says 1.0.
Should be something like 1.0.1, 1.2.0 etc etc.
Thanks!
Take a look at my example, the counter works fine unless you hit submit and validation error fires, the counter stops working after the first error occurs on a field
http://jsfiddle.net/4k1vokgv/1/
try typing in the first textarea and hit submit, notice the first textarea's counter still will work, but the second textarea counter will not work even if validation is ok
I am just trying to figure out the conflict or the event that is halting the counter
currently if more than once class is added the plugin breaks.
Would it be possible to have a fix to add multiple classes?
Hi,
Is there a callback to reset / refresh the counter?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.