Search Fuction not found

Search Fuction not found

novatroop77novatroop77 Posts: 14Questions: 4Answers: 0
edited March 2022 in DataTables 1.9

I am trying to use the search function on a custom text box in a mvc c# application however I am having an issue
I am using datatable version Datatable version 1.9.4 I need to replace as I need to pass to the http ajax post method what the user searched for.. I dont no why the system is using quoes around the items as most the examples here do not if someone can explain that to be great. Also when I do type in my txt its not parsing the table.

Also is their anyway to find out what column datatables found the result in.

```
script type="text/javascript">

$(function () {

 var myTable =  $('#allSubmissions').DataTable({
     'iDisplayLength': 15,
     "bSort": true,
     "sPaginationType": "full_numbers",           
     "bLengthChange": false,
     "bDestroy": true,
     "bRetreive": true,
     "searching": true,
 });

 $('#search-inp').on('keyup', function () {
     myTable.search($(this).val()).draw();
 });
 });

</script>

Also How do I get my new search box in the location the old one was it was to the far right of the table

Answers

Sign In or Register to comment.