Hi.
i've these div on my html page :
// CSS
.trackon{width:710px; height:26px; color:#CCCCCC; font-weight:bold; float:left;}
.trackoff{display:none;}
// HTML
<div class="trackon" id="trackline1">Line 1</div>
<div class="trackon" id="trackline2">Line 2</div>
<div class="trackon" id="trackline3">Line 3</div>
<div class="trackoff" id="trackline4">Line 4</div>
<div class="trackoff" id="trackline5">Line 5</div>
with my own function addTrack(1) i want to append (for example) Line 5 between 1 and 2. so i make this function :
function addTrack(param) {
$("#trackline5").removeClass().addClass('trackon');
$("#trackline"+param).append($("#trackline5").html());
}
the problem is that this append doesnt move the other div down. That div (the one with Line 5) will displayed overlapped at the end of div with Line 1.
where im wrong? cheers