Having an issue with appending an element to the end of a span on my webpage. The problem arises when there are multiple spans, causing the element to duplicate itself across all spans instead of going only at the very end of the last span. Any suggestions for a solution?
Please note: I must maintain the presence of the span tags
JS
$('#face').css({"float":"right"}).appendTo('span');
HTML
<div id="face" style="background-color: #000000; width: 30px; height: 20px;"></div>
<br/><br/>
<span>He fell off his horse</span>
<span>and broke his ankle</span>