Index: captcha.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/captcha/captcha.inc,v retrieving revision 1.19 diff -u -r1.19 captcha.inc --- captcha.inc 31 Dec 2010 01:45:49 -0000 1.19 +++ captcha.inc 2 Feb 2011 10:47:53 -0000 @@ -331,6 +331,9 @@ * @param $captcha_element the CAPTCHA element to insert. */ function _captcha_insert_captcha_element(&$form, $placement, $captcha_element) { + // Use javascript for some added usability on admin form. + drupal_add_js(drupal_get_path('module', 'captcha') . '/captcha.js'); + // Get path, target and target weight or use defaults if not available. $target_key = isset($placement['key']) ? $placement['key'] : NULL; $target_weight = isset($placement['weight']) ? $placement['weight'] : NULL; Index: captcha.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/captcha/captcha.js,v retrieving revision 1.4 diff -u -r1.4 captcha.js --- captcha.js 20 Feb 2010 16:57:41 -0000 1.4 +++ captcha.js 2 Feb 2011 10:46:40 -0000 @@ -27,4 +27,10 @@ }; +Drupal.behaviors.captcha = { + attach: function (context) { + // Turn off autocompletion for the CAPTCHA response field + $("#edit-captcha-response").attr("autocomplete", "off"); + } +}; })(jQuery); Index: captcha.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/captcha/captcha.module,v retrieving revision 1.121 diff -u -r1.121 captcha.module --- captcha.module 30 Dec 2010 00:29:15 -0000 1.121 +++ captcha.module 2 Feb 2011 10:47:08 -0000 @@ -692,7 +692,6 @@ '#size' => 4, '#maxlength' => 2, '#required' => TRUE, - '#attributes' => array('autocomplete' => 'off'), ); return $result; } Index: image_captcha/image_captcha.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/captcha/image_captcha/image_captcha.module,v retrieving revision 1.39 diff -u -r1.39 image_captcha.module --- image_captcha/image_captcha.module 29 Nov 2010 00:12:19 -0000 1.39 +++ image_captcha/image_captcha.module 2 Feb 2011 10:48:11 -0000 @@ -255,7 +255,6 @@ '#weight' => 0, '#required' => TRUE, '#size' => 15, - '#attributes' => array('autocomplete' => 'off'), ); // Handle the case insensitive validation option combined with ignoring spaces.