I am trying to make this work:
$("#content").on("load", "#prev_next", function() {
alert('ahoy!');
//$("#prev_next").children('a').clone().prependTo("#top_prev_next");
});
And obviously I am doing something wrong so if someone would love to point me in the right direction that would be awesome.
Pretty much #content is loaded into a div and I need to wait for the #prev_next id in #content to load and then clone it into #top_prev_next which is outside of #content.
Any help or examples would be appreciated!
Thanks!