0
Hi, I have a Divs configuration on a crud and wanted to put the div I create dynamically above a UL that contains the send buttons. It is not possible to place this manually via html as the screen is automatically generated via Jformer. I wanted to put the "fields" Ivs on top of the UL "Jformercontrol"
via jquery I can’t.
$(".jFormerControl").append('.campos');
$(".campos").append(".jFormerControl");
I tried for these commands but did not roll. Someone has already gone through this and can help me ?
now stayed inside the div, but UL still stands for first :|
– Estácio Di Fabio
To stay before any other element use the "preppend".
– Pedro Camara Junior
use then $formerControl.preppend($fields); ?
– Estácio Di Fabio
That. Just by correcting, it is "prepend" with only one p. http://api.jquery.com/prepend/
– Pedro Camara Junior
It worked here, thanks (:
– Estácio Di Fabio