Select sorting position
Select sorting position
HI
i use this code to display an select to sorting fields:
[code]
"fnInitComplete": function(){
$('#example').append('Trier par :DateDistanceTitre');
$("#sortevent").change(function () {
searchincoming = false;
if ($("#sortevent").val() == 'evtstartdate'){
oTable.fnSort( [ [2,'asc']] );
}
else if($("#sortevent").val() == 'evttitle') {
oTable.fnSort( [ [1,'asc']] );
}
else{
oTable.fnSort( [ [4,'asc']] );
}
})
}
[/code]
but SELECT is display below datatable.
How can idisplay it on top ? which style class ?
thanks
i use this code to display an select to sorting fields:
[code]
"fnInitComplete": function(){
$('#example').append('Trier par :DateDistanceTitre');
$("#sortevent").change(function () {
searchincoming = false;
if ($("#sortevent").val() == 'evtstartdate'){
oTable.fnSort( [ [2,'asc']] );
}
else if($("#sortevent").val() == 'evttitle') {
oTable.fnSort( [ [1,'asc']] );
}
else{
oTable.fnSort( [ [4,'asc']] );
}
})
}
[/code]
but SELECT is display below datatable.
How can idisplay it on top ? which style class ?
thanks
This discussion has been closed.