jquery - How to call a change event on a condition -


On clicking a button, I am making an Ajax call as shown below.

  $ (document) .on ('click', '# savenewcategoryforT2', function (event) {$ .ajax ({type: 'GET', url: urllocal + '/ OMS / Oms / categorylevelupdateservice ', jsonp callback:' json callback ', data type:' jsonp ', jsonp: wrong, success: work (feedback); {var res = response; if (res == true) {}}, error: function (E) {}});});  

Once the success function starts , is it possible to call the code below?

  $ (document). ('Change', '# t1 selection', function (event) {});  

Thank you in advance.

To trigger your handler and to trigger the browser's original handler or just your handler

  $ ('# T1 selection'). Trigger ('change');  

Comments