I have these divs
<div id="fechaPartida">
<label>Partida </label>
<input type="text" class=".ui-icon-calendar dates" name="date" id="dateSV" value="" />
</div>
<span id="hideit">
<div id="fechaRegreso">
<label>Regreso</label>
<input type="text" class=".ui-icon-calendar dates" name="date" id="dateFV" value="" />
</div>
</span>
<div id="soloIda">
</br>
<input type="checkbox" class="" name="" id="soloIdaCheck" value=""/> Solo ida
</div>
I'm hiding and showing (toggling) the div with the span "hideit" around it. it toggles just fine with
$('#soloIdaCheck').click(function(){
$('#hideit').toggle();
});
but I want that cool effect jquery gives you using toggle('slow') but when I do that, the div order changes because the div I hid is now the last one
check this image to understand it better
this is the css for the divs
#fechas{
width:100%;
height:50px;
}
#fechaPartida{
float:left;
width:170px;
}
#hideit{
display:inline-block;
}
#fechaRegreso{
float:left;
width:150px;
}
#soloIda{
padding-top:5px;
float:left;
width:80px;
}