@kthorngren Ok nice, I edited the code so it become like this http://live.datatables.net/mojavivu/1/edit
to make the search box with the same row/div of the date range filter. So, I commented div.toolbar and I removed <toolbar> from dom. I also wrote $('#max').after('<label>Search:</label><input type="search" class="dataTables_filter_custom">');
inside intiComplete but the search bar suddenly stopped working...
Since you changed the HTML structure by removing the div with the classname dataTables_filter_custom and placed that classname on the input tag you need to update these two selectors by removing input:
let search = $('.dataTables_filter_custom input').val();
Answers
@kthorngren Ok nice, I edited the code so it become like this http://live.datatables.net/mojavivu/1/edit
to make the search box with the same row/div of the date range filter. So, I commented
div.toolbar
and I removed <toolbar> from dom. I also wrote$('#max').after('<label>Search:</label><input type="search" class="dataTables_filter_custom">');
inside intiComplete but the search bar suddenly stopped working...
Since you changed the HTML structure by removing the
div
with the classnamedataTables_filter_custom
and placed that classname on theinput
tag you need to update these two selectors by removinginput
:Like this:
http://live.datatables.net/zihipehi/1/edit
Kevin