Title: jQuery-Version for $(&#8230;).live(&#8230;)
Last modified: October 7, 2016

---

# jQuery-Version for $(…).live(…)

 *  [ByteBros](https://wordpress.org/support/users/bytebros/)
 * (@bytebros)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-version-for-live/)
 * There is a bug in line #46 if wp-lightbox-2.js.
    If the jQuery-Version loaded
   is between 1.10.x and 1.23.4 than the script fails and calls the depricated live()-
   function.
 * The correct line has to be:
 *     ```
       if(parseFloat($().jquery) >= 1.7 || parseFloat($().jquery) <= 1.2){
       ...
       ```
   

The topic ‘jQuery-Version for $(…).live(…)’ is closed to new replies.

 * ![](https://ps.w.org/wp-lightbox-2/assets/icon-128x128.png?rev=1093845)
 * [WP Lightbox 2](https://wordpress.org/plugins/wp-lightbox-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-lightbox-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-lightbox-2/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-lightbox-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-lightbox-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-lightbox-2/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [ByteBros](https://wordpress.org/support/users/bytebros/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-version-for-live/)
 * Status: not a support question