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