I have an avatar upload which works fine, the problem is that when the upload has completed I want to update the avatar (if its in the top10) directly.
If the image is in the top10 it would have an id called ‘chavatar’.
In a nutshell:
if there’s an image with the id ‘chavatar’ on the page, reload that image’s source.
How would I write that in javascript, thanks for any help.
1 Answer