It sounds like it’s your browser caching the image (which I now notice you wrote in your question). You can force the browser to reload the image by passing an extra variable like so:
d = new Date();
$("#myimg").attr("src", "/myimg.jpg?"+d.getTime());
More Related Contents:
- How to select all images using jquery and give them an width?
- Difference between .on(‘click’) vs .click()
- How do you select a particular option in a SELECT element in jQuery?
- iframe to Only Show a Certain Part of the Page
- Pass array to ajax request in $.ajax() [duplicate]
- Trigger click on input=file on asynchronous ajax done()
- jQuery or CSS selector to select all IDs that start with some string [duplicate]
- jQuery ajax success anonymous function scope
- Can you detect “dragging” in jQuery?
- Dealing with line Breaks on contentEditable DIV
- Trouble with jQuery Dialog and Datepicker plugins
- What’s the difference between keyup, keydown, keypress and input events?
- How can I convert a DOM element to a jQuery element?
- jQuery scrollTop not working in Chrome but working in Firefox
- Check if username exists in database with AJAX
- append /remove anchor name from current url without refresh
- Write Content To New Window with JQuery
- How can I change HTML attribute names with jQuery?
- finding the type of an element using jQuery
- A cleaner way to select by multiple possible attribute values?
- Populate Select box options on click with Javascript/Jquery with Json data
- Modify a svg file using jQuery
- How do I reset a jquery-chosen select option with jQuery?
- How to use Plugins for PopUp [closed]
- Async and document ready
- How to use multiple jquery object variables as selectors?
- jQuery delay() – how to stop it?
- Remove elements onclick (including the remove button itself) with jQuery
- File upload Jquery WebApi
- How can I extend jQueryUI datepicker to accept an additional argument?