jQuery How to call an event function without the event being triggered -


I have a jQuery function as shown below, whether I want to call the function within my javascript regardless of triggering Whether or not it's an event. In other words, there are situations where I just want to call the function below. Is this possible?

  $ (document) .on ('change', '.jq__pAC', function (event) {// some job code}); // the ending. The best way to do this is as follows:  

P>

  function myFunction (event) {// code stuff here} ... $ (document) .on ('change', '.jq_pAc', myfunction);  

In this way, you can call your function at your discretion, and it will also be called by the change event.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -