Thursday, 4 April 2013

Calling multiple Functions on single event in JQuery



$.firstfunc = function(cb) {
    alert("Function 1");
    return false;
}

$.secondfunc = function(){
    alert("Function 2");

    cb();
    return false;
}

$("#service_id").change(
  function() {
    $.firstfunc($.secondfunc);
});

No comments:

Post a Comment