My jQuery on change is not working if I choose same file on another row data on loop.
for($i=$Page_Start;$i<$Page_End;$i++)
{
?>
<tr class="trClick" id="<?php echo $dData['DESCRIPTIONID'][$i]; ?>" data-toggle="modal">
<td>Data</td>
</tr>
<?php
}
Modal
<div id="modalBellDescriptionLoad" class="modal fade">
<div class="modal-dialog">
<form id="updateDescription" action="" method="post" autocomplete="off">
<div class="modal-content">
<input type="file" name="bellToneFileInput" class="bellToneFileInput" id="bellToneFileInput"/>
</div>
</form>
</div>
</div>
jQuery
$(".bellToneFileInput").change(function()
{
alert("Test");
});
alert will appear if I choose different file to another row data loop. If same file choose, alert not appear.
Is there something wrong I do on my code?