I am doing my TCC and it will be about image processing. I'm having difficulty with the web part, and was wondering how do I load the selected image in the input file to appear on the page. Here's my code:
<script>
$(document).ready(function () {
$(".Open").change(function (index) {
if ($('input[type=file]').eq(index).val() != "") {
$('#Tela').attr('src', $(this).val());
}
});
});
</script>
<fieldset class ="Img">
<img id ="Tela" Name ="Tela"></img>
<input type ="file" name="Arquivo" class="Open"/>
</fieldset>