I am trying to change to position of children of the body. I obviously do not understand how to do so, but I thought it would be novel if the following code would work:
var temp = $('body').children()[0];
$('body').children()[0] = $('body').children()[1];
$('body').children()[1] = temp;
Sadly for me, it does not. I have searched and found the .add() method, but I do not see how to add to the beginning of a parent/I don't know how to delete another child.
I appreciate any help.