jquery-character-counter icon indicating copy to clipboard operation
jquery-character-counter copied to clipboard

Is it possible to update limit on the fly

Open samir001 opened this issue 10 years ago • 4 comments

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

samir001 avatar Apr 29 '14 11:04 samir001

This isn't possible right now.

I could look into adding it in.

darrentaytay avatar Apr 29 '14 19:04 darrentaytay

I could use this enhancement. At least you should listen to any change. If we set the value of the textarea through $('textarea').val('Some String'); the count is not updated.

BrainFeeder avatar Jun 03 '15 13:06 BrainFeeder

@BrainFeeder .val() doesn't trigger an event I can listen to.

You can do something like $('textarea').val('Some String').trigger('change');

This should re-count.

darrentaytay avatar Jun 21 '15 13:06 darrentaytay

Ah, of course. I mixed up with the other input elements .. again. I had it working a few minutes after I commented my frustrations :)

BrainFeeder avatar Jul 27 '15 13:07 BrainFeeder