title: JavaScript moving element in the DOM
body: <p>Let's say I have three <code>&lt;div&gt;</code> elements on a page. How can I swap positions of the first and third <code>&lt;div&gt;</code>? jQuery is fine.</p>