Dropdown box switch location

Dropdown box switch location

jasmine825jasmine825 Posts: 5Questions: 5Answers: 0

Here is my java script:

$(document).ready(function() {
var table = $('#table_id').DataTable();

$("#table_id tfoot th").each( function ( i ) {
    var select = $('<select><option value="clinic number"></option></select>')
        .appendTo( $(this).empty() )
        .on( 'change', function () {
            table.column( 0 )
                .search( $(this).val() )
                .draw();
        } );
    table.column( 0 ).data().unique().sort().each( function ( d, j ) {
        select.append( '<option value="'+d+'">'+d+ "-" +getClinicName(d)+'</option>' )
    } );
} );

} );

I want to be able to move the dropdown box from being inside the table to be located next to my search box

http://52.91.139.19/inactive/nonpatient.php

This discussion has been closed.