javascript - jQuery change event being called twice -


I have a form with some input and selection boxes, in each class = "myClass" is. I also have the following script:

  $ (document) .ready (function () {$ (". MyClass"). Changes (function () {alert ('bla');} )});   

I do not understand that after every change in the selection box or input box, this function is being called twice. What's wrong here?

Appreciate your help!

All I can think is that you used the same category on your own if yes, then your form Remove the myClass style from the tag.

Correct:

Faulty double warning:

Comments