简体   繁体   中英

How to append a div with two different divs using jquery?

Hello recently I am using sweet pages pagination for my website. I want to display the pagination controll on top and bottom of the pages. How can I do that?

Now the codes are like this

var controls = $('.swControls').detach();

controls.appendTo('#sliderPag');

controls.clone().appendTo('#main2');

This is working

But the bottom links are not working.. I cant understand why its not working. any body knows the solution please help me..

var controls = $('.swControls').detach();
controls.appendTo('#sliderPag');
controls.clone(true).appendTo('#main2');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM