Move Div Up with Jquery

0
Hi, I have a configuration of divs in a crud and wanted to put the div that I dynamically create above a UL that contains the send buttons. It is not possible to manually enter this via html because the screen is generated automatically via JFormer. I wanted to put the "fields" divs on top of the UL "JFormerControl"

viajqueryIcannot.

$(".jFormerControl").append('.campos');
$(".campos").append(".jFormerControl");

I tried for these commands but it did not roll. Has anyone been through this and can you help me?

    
asked by anonymous 27.10.2015 / 18:24

1 answer

0

Try something like this:

var $campos = $(".campos");
var $formerControl = $(".jFormerControl");
$formerControl.append($campos);
    
27.10.2015 / 18:34