change order divs with jQuery

后端 未结 7 955
长发绾君心
长发绾君心 2020-12-08 07:44
aaa
bbb
ccc

Is poss

7条回答
  •  -上瘾入骨i
    2020-12-08 08:20

    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.

提交回复
热议问题