I have after creating this test for a future project come across a task that I am unable to solve and after looking across the Internet cannot seem to find an answer that:
- I understand due to lack of knowledge of Javascript
- Does not seem to work with my layout of code
I would like to allow us to work out the width and height (in pixels) of an uploaded image, and then show it replacing the contents of an HTML element.
My code is copied here: https://jsfiddle.net/op4sy5g8/