1
I’m doing my TCC and it will be about image processing. I’m having difficulty with the web part, and wanted to know how I do to load the selected image in the input file appear on the page. Here is 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>
Thanks did help yes
– Conrado Basso