learner
learner

Reputation: 2129

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..

Upvotes: 0

Views: 157

Answers (1)

Thomas
Thomas

Reputation: 3044

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

Upvotes: 3

Related Questions