How to migrate older jQuery code to jQuery 1.9+
jQuery.fn.toggle()docs (_event click signature only_)
"hover"pseudo-event name docs
ajaxStart, ajaxSend, ajaxSuccess, ajaxError, ajaxComplete, ajaxStopglobal events on non-
- Use of
jQuery.fn.data()data events (undocumented)
jQuery.fn.data("events")to retrieve event-related data (undocumented)
But there are many sites in production which are still using these deprecated features and it's not possible to replace them overnight. So jQuery team provided with jQuery Migrate plugin that makes code written prior to 1.9 work with it.
This project can be used to detect and restore APIs, features or functionality that have been deprecated in jQuery and removed as of version 1.9. The plugin can be included with versions of jQuery as old as 1.6.4 as a migration tool to identify potential upgrade issues. However, the plugin is only required for version 1.9 or higher to restore deprecated and removed functionality.
This plugin comes in production and development version. To make it easier for jQuery developers to find and remove deprecated functionality, the development version of the plugin displays warnings on the browser's console.
Feel free to contact me for any help related to jQuery, I will gladly help you.