I am encountering an issue with positioning a footer under dynamic content displayed in a div named txtresults. The div is updated with HTML following a query made with an input value, as shown in this example on JsFiddle: JsFiddle
Currently, I am struggling to ensure that the footer (#footer) stays positioned beneath the results regardless of their length. At the moment, the footer appears outside the #txtresults. If I try placing the footer inside the div, the content is not visible. How can I resolve this issue?