aaa bbb ccc
Is poss
You can do it by this
var obj = $('.test.two'); obj.after(obj.prev());
so, div one and div two will change their's position.
I hope it can help you.