javascript i want the image to change base on the things i put in the input code example
Example: change src with inpute type="file"
<img id="output" src="" width="100" height="100">
<input name="photo" type="file" accept="image/*" onchange="document.getElementById('output').src = window.URL.createObjectURL(this.files[0])">