jquery-maskmoney icon indicating copy to clipboard operation
jquery-maskmoney copied to clipboard

Event 'input' not triggering

Open JobaDiniz opened this issue 10 years ago • 15 comments

Similar to the https://github.com/plentz/jquery-maskmoney/issues/19 but using the "input" event.

JobaDiniz avatar Apr 01 '14 20:04 JobaDiniz

@JobaDiniz when it's supposed ti be triggered?

plentz avatar Apr 05 '14 14:04 plentz

The event "input" is supposed to be triggered whenever the fields changes, whether by copy-paste, keydown or browser auto filling.

$( ".hasMask" ).on( "input", function() {
  alert( "changed " );
});

That doesn' work when the input has maskMonkey applied.

JobaDiniz avatar Apr 05 '14 15:04 JobaDiniz

@JobaDiniz do you have some sort of link or reference that mention that event(input)? (I never heard of it, to be sincere).

plentz avatar May 16 '14 13:05 plentz

http://stackoverflow.com/questions/17384218/jquery-input-event#answer-17384264

http://stackoverflow.com/questions/15727324/for-a-javascript-autocomplete-search-box-must-we-use-the-input-event-handler#answer-15727891

JobaDiniz avatar May 16 '14 13:05 JobaDiniz

Is there any progress on this issue?

bcalik avatar Jul 22 '15 09:07 bcalik

Any chance this will get fixed soon? I would love to use this plug-in but can't because of this issue

thjellming avatar Jan 22 '16 05:01 thjellming

Hi, will this bug ever be fixed?

ivande avatar Aug 14 '17 14:08 ivande

This is again (or still) a problem in jquery-maskmoney - v3.1.1.

ghost avatar Sep 04 '17 18:09 ghost

The problem still exists :'(

MoacirCarlos avatar Jan 07 '18 03:01 MoacirCarlos

yeah it still exist :'(

rifatfansz avatar Jan 13 '18 09:01 rifatfansz

Same problem here (using v3.0.2)... I'm using formvalidation.io plugin and event "change" (or "input") not triggered...

balivo avatar Jan 18 '18 12:01 balivo

i'm using on keypress and on keydown it like on input for me now $('.hitung_total_edit').keydown(function(event) { if(event.which == 8) { //response for backspace hitung_total(); } }); $('.hitung_total_edit').keypress(function(event) { if(event.which >= 48 && event.which <= 57 || event.which >= 96 && event.which <= 105) { //response for number keypad hitung_total(); } });

rifatfansz avatar Jan 23 '18 04:01 rifatfansz

This should works $(your_element).on('keyup.maskMoney', function () {});

cesarcruzc avatar Sep 19 '18 21:09 cesarcruzc

I'm using: document.getElementById(idElement).addEventListener("blur", () => function(){}));

But this problem exist, yet.

I wrote this lib monitorFormChange, but this soluction is not the best for me.

emersonassis avatar Apr 09 '20 14:04 emersonassis