I am working on a page that contains load more ajax. This is the html structure
.... // items goes here
....// load more button
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