jquery - How to call a change event on a condition -
jquery - How to call a change event on a condition -
on click of button, doing ajax phone call shown below.
$(document).on('click', '#savenewcategoryfort2', function(event ) { $.ajax({ type: 'get', url: urllocal + '/oms/oms/categorylevelupdateservice', jsonpcallback: 'jsoncallback', datatype: 'jsonp', jsonp: false, success: function(response) { var res = response; if (res == true) { } }, error: function(e) { } }); });
once success
function
triggered, possible phone call code below?
$(document).on('change', '#t1select', function(event) { });
thank in advance.
jquery.trigger trigger both handler , browser native handler or jquery.triggerhandler trigger handler
$('#t1select').trigger('change');
jquery
Comments
Post a Comment