I wrote code. when you click on the button function is called up, which will raise the div up one position over another div, and the same with the Down just down Do you know how to do it ? http://jsfiddle.net/WmbmF/15/
<button type="submit" class="button" id="addk">Add div</button>
<div class="body" style="float: left;">
and
var RL;
RL = 0;
$("#addk").click(function () {
RL = RL + 1;
RN = "Tekst" + RL;
$("<div id='" + RN + "' class='we' > " +
"<B>Kon" + RL +"</B>" +
"<button type='submit' class='button' onclick='Add(" + RN + ");' >AddNext</button>" +
"<button type='submit' class='button' onclick='Close(" + RN + ");' >Close</button>" +
"<button type='submit' class='button' onclick='Up(" + RN + ");' >Up</button>" +
"<button type='submit' class='button' onclick='Down(" + RN + ");' >Down</button><br />" +
"<br />" + "<input type='text'>" + "<br /><br />" + '</div>').
appendTo(".body");
});
function Close (){
$("#" + body.id + "").hide();
}
function Up (we){
//??
}
function Up (we){
//?
}