I want to preview an uploaded image file in a div. I have done a bit of research and I have found this piece of code from this post, it is the code to preview an uploaded im
You could use CSS shorthand just like in a CSS file. I recommend the following to avoid repeating and alignment issues:
The change is the line like this
$('#objectID').css('background', 'transparent url('+e.target.result +') left top no-repeat');