jQuery insertAfter adding divs multiple times

Hi there,

I have grid of 6 boxes, each with a div that I am moving to under another div.

I am using the following to move a div under another div, but it seems to be repeating the process.

jQuery(".box-wrapper .inner-inner .link").insertAfter(".box ");

Is there a way to stop this happening and make it so that the div only moves once?

Many thanks!

As we do not know how your DOM looks like we cannot help. The line you showed is only executed once so no repeat.