Title: jquery deprecated method $.live
Last modified: August 21, 2016

---

# jquery deprecated method $.live

 *  [cappellania.uniroma3](https://wordpress.org/support/users/cappellaniauniroma3/)
 * (@cappellaniauniroma3)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/jquery-deprecated-method-live/)
 * I am using the latest jquery in my wordpress website. Ever since jquery 1.7 the
   $.live method has been deprecated; we are now at jquery version 1.10.2 (or even
   2.0.3). WordPress core and jetpack have updated their code to use the new “$.
   on” method after I encouraged them to do so, I would encourage you to do the 
   same.
    I counted 21 instances of the “$.live” method in “/pub/js/options.js”,
   so I won’t even list them all. Here is one example of how to correctly upgrade:
   Line 443 is now:
 *     ```
       jQuery('.button-tweet').live('click', function() {
       ```
   
 * It should be:
 *     ```
       jQuery('document').on('click', '.button-tweet', function() {
       ```
   
 * The same goes for all other 20 instances in options.js.
 * [http://wordpress.org/plugins/w3-total-cache/](http://wordpress.org/plugins/w3-total-cache/)

The topic ‘jquery deprecated method $.live’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [method](https://wordpress.org/support/topic-tag/method/)
 * [on](https://wordpress.org/support/topic-tag/on/)

 * 0 replies
 * 1 participant
 * Last reply from: [cappellania.uniroma3](https://wordpress.org/support/users/cappellaniauniroma3/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/jquery-deprecated-method-live/)
 * Status: not resolved