/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// There is no reload or replace method for images. The src property can be set in the same way as the location.href property though. with($('#image')) { src = src.replace(/\?.*$/, '') + '?' + Math.random(); }
URL: http://johannburkard.de/blog/programming/javascript/6-fast-jQuery-Tips-More-basic-Snippets.html