Moving an element with InsertAfter, but only insert it the parent of the elements?
- by alexchenco
I did the following:
jQuery('.businessdirectory-category .wpbdp-rating-info').insertAfter('.businessdirectory-category .title');
To move .wpbdp-rating-info after .title. But there are 3 .wpbdp-rating-info in the page so now each .businessdirectory-category has 3 .wpbdp-rating-info
How can I do it so that each .businessdirectory-category only has its own .wpbdp-rating-infoappended to its own.title`?
EDIT: