captcha has an img element of #recaptcha_challenge_image element, so after you set recaptcha to one div, say "regCaptch", get img src attr, set another divch html captcha to the old html, and then set #recaptcha_challenge_image src to src, which you get, here is a working example
var reCaptcha_src = $('#recaptcha_challenge_image').attr('src'); $('#texo').html($('#regCaptch').html()); $('#recaptcha_challenge_image').attr('src',reCaptcha_src);
Amr Najip Sep 14 '15 at 16:00 2015-09-14 16:00
source share