I would like to insert a tag using append but whenever I try, it tries to insert an image into the div that I want to insert only the text, is there any way I can do it?
<input type="file" multiple id="file-input" />
<script src="https://code.jquery.com/jquery-3.2.1.js"></script><divid="id">
</div>
<script>
$("#file-input").change(function(){
$("#id").empty();
var names = [];
for (var i = 0; i < $(this).get(0).files.length; ++i) {
var thisfile = $(this).get(0).files[i].name;
$("#id").append("<img src='images/images/eventos/"+thisfile+"' /><br/>");
}
})
</script>