How would I go about reordering divs without altering the HTML source code?
example, I want divs to appear in order #div2, #div1, #div3, but in the HTML they are:
In jQuery, you can do the following:
$("#div1").insertAfter("#div2");
That will move the element with id 'div1' to after element with id 'div2'. This assumes that you eliminate the '#' from your id attributes.