$("#sibling").prepend("#sibling2")
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="sibling">First sibling</div>
<div>Another component</div>
<div id="sibling2">Second sibling</div>
I attempted to insert the first sibling before the second sibling using the prepend method.
Although it does add them together, it ends up on top of the second sibling. I am aiming to place the first sibling beside the second sibling instead.