0
Hello, gentlemen I have a table where in it has a column that has an input type file, when pressing the input only the first line listen to the event, you would know me to tell what I am doing wrong?
$("#uploadBtn").on('change', function(e) {
});
<table class="table table-condensed" id="tblformacao">
<tr>
<td>
<input id="uploadBtn" type="file" class="upload" onchange="UploadFile(this)" name="Anexar Documento" />
</td>
</tr>
I believe it is due to the fact that this selected by
ID
, try to select a class:$(".upload").on('change', function(e) { ... })
, if necessary, add an additional class for this purpose.– Tobias Mesquita
@Tobymosque worked thanks.
– Zica