Dropdown box switch location
Dropdown box switch location
jasmine825
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
This discussion has been closed.