Title: Script.js error of live function
Last modified: August 30, 2016

---

# Script.js error of live function

 *  Resolved [Nitin](https://wordpress.org/support/users/marcosnitin/)
 * (@marcosnitin)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/)
 * The script.js file is throwing an error to the console in your current version
   of the plugin.
 * Uncaught TypeError: $(…).live is not a function
 * “live” function is deprecated in jquery and instead another function named “delegate”
   is used now.
 * Please consider this problem in your further release.
 * [https://wordpress.org/plugins/google-captcha/](https://wordpress.org/plugins/google-captcha/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [lllypyn](https://wordpress.org/support/users/lllypyn/)
 * (@lllypyn)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344060)
 * I have some problem. You must change this in plugin_dir/js/script.js:
 *     ```
       if ( parseInt( $.fn.jquery ) >= 1.7 ) {
       			$( '#recaptcha_widget_div' ).on( 'input paste change', '#recaptcha_response_field', cleanError );
       		} else {
       			$( '#recaptcha_widget_div #recaptcha_response_field' ).live( 'input paste change', cleanError );
       		}
       ```
   
 * to
 *     ```
       $( '#recaptcha_widget_div' ).on( 'input paste change', '#recaptcha_response_field', cleanError );
       ```
   
 * It is because this code not correctly work. I use jquery version 1.11.2.
 *     ```
       parseInt( 1.11.2 ) >= 1.7 // false
       ```
   
 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344081)
 * Hi,
 * Thank you for your notes.
    We know about this problem in the Google Captcha work
   and we’ll fix it in the nearest update.
 * Regards,
    BestWebSoft Support Team
 *  [bangdigital](https://wordpress.org/support/users/bangdigital/)
 * (@bangdigital)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344213)
 * For anybody continuing with this problem.
 * Replace in script.js
 *     ```
       if ( parseInt( $.fn.jquery ) >= 1.7 ) {
       			$( '#recaptcha_widget_div' ).on( 'input paste change', '#recaptcha_response_field', cleanError );
       		} else {
       			$( '#recaptcha_widget_div #recaptcha_response_field' ).live( 'input paste change', cleanError );
       		}
       ```
   
 * With
 *     ```
       if(!!$.fn.on) {
       			$( '#recaptcha_widget_div' ).on( 'input paste change', '#recaptcha_response_field', cleanError );
       		} else {
       			$( '#recaptcha_widget_div #recaptcha_response_field' ).live( 'input paste change', cleanError );
       		}
       ```
   
 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344217)
 * Hi,
 * We’ve fixed this error already. Please update the plugin.
 * Best Regards,
    BestWebSoft Support Team
 *  [bangdigital](https://wordpress.org/support/users/bangdigital/)
 * (@bangdigital)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344228)
 * This error hasn’t been fixed in the latest version.
 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344229)
 * Hi bangdigital,
 * Thank you for your note.
    Due to the fact that we refused to support the WordPress
   versions below 3.8, in the following plugin update the above condition will be
   deleted from the plugin’s code.
 * Sincerely,
    BestWebSoft Support Team
 *  [Anouska](https://wordpress.org/support/users/anouska/)
 * (@anouska)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344236)
 * This still was not fixed in the latest version of the plugin (1.21). I’m running
   WordPress 4.4 with jQuery 1.11.3.
 * I fix it myself each time the plugin updates, but it’s a bit annoying to have
   to do each time if it’s such a small fix.
 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344237)
 * Hi Anouska,
 * Thank you for your message. We apologize for any inconvenience this issue might
   have caused you. We’ll fix it in the next plugin update.
 * Sincerely,
    BestWebSoft Support Team

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Script.js error of live function’ is closed to new replies.

 * ![](https://ps.w.org/google-captcha/assets/icon-256x256.gif?rev=2565249)
 * [reCaptcha by BestWebSoft](https://wordpress.org/plugins/google-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/google-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-captcha/reviews/)

## Tags

 * ["js error"](https://wordpress.org/support/topic-tag/js-error/)

 * 8 replies
 * 5 participants
 * Last reply from: [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/scriptjs-error-of-live-function/#post-6344237)
 * Status: resolved