$("#simple_captcha-7d2fff9933a").attr('src', '/simple_captcha?code=ac79e098e67a0f066b46254f3c538769584ec6c8&time=1532090807'); $("#simple-captcha-hidden-field-simple_captcha-7d2fff9933a").attr('value', 'ac79e098e67a0f066b46254f3c538769584ec6c8');