Witam. Czy wie ktoś może dlaczego zwraca mi undefined
?
<table class="table table-striped materials">
....
<input type="file" />
...
</table>
$('table.materials').on('change', 'input[type=file]', function(){
var $this = $(this);
console.log($this.files);
})
W console.log wyświetla mi się po dodaniu pliku undefined. Wie ktoś dlaczego tak się dzieje?