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

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -