Hi all,
I am working on a page that contains load more ajax. This is the html structure
<div id="pagination"...>
.... // items goes here
</div>
<div id="loadmore"...>
....// load more button
</div>
My ajax is whenever there is an ajax call, the "#pagination" empty itself, append the response data. Since the loadmore button needs to be updated link, I included it in the response data. This, however, causes a problem that the loadmore div is nested inside "pagination" after ajax. Any idea how should I overcome this?
Thanks in advance