jQuery override $.post function
First of all I apologize for my poor english... Hope someone will understand my question and help me... I'm working on a project using lots of $.post call and I want to improve them by adding the same verification for all of them. I do not want to change all scripts one by one so is there any way to override the $.post function to add the same thing to all of them at the same time ? Or maybe a way to trigger another function on each $.post ? Something like : $.post.each(function(){[...]}); or $('body').on('post', function(){[...]}); Thanks ! EDIT : Finally did it as I wanted ! Here is my code