Refresh image using jquery
A little trick to reload images without refresh the whole page:
<img id="captcha" src="/users/captcha" /> <a href="#" onclick="$('#captcha').attr('src', '/users/captcha?hora='+(new Date()));">
The trick is add the actual time within the URL, then the browser will reload the image, otherwise it doesn’t.