I am appending data to the screen, but at the end of each I am trying to add a <hr>
which produces a line. The issue is, when I add this simple tag, it messes up the structure. I am not sure what is causing this, but I would like to know how to append the tag without stretching out all of the appended elements.
$.each(results, function() {
$("#resultsDiv").append('<tr>');
$("#resultsDiv").append('<td width=11.1% align="left" valign="center">' + this.group1 + '</td>');
$("#resultsDiv").append('<td width=11.1% align="left" valign="center">' + this.group2 + '</td>');
$("#resultsDiv").append('<td width=11.1% align="left" valign="center"><img id="Img" src="ghost.png"></td>');
$("#resultsDiv").append('<hr>');
$("#resultsDiv").append('</tr>');
});
<div id="resultsDiv"></div>