title: AJAX Search with Table Listing
body: <p>I have a table listing that is pulled from a mysql query. I have put a textbox and a button to take a search query. I'm not sure how to take the query and then do a backend query. Basically I want to update the table listing to match the query. What is the process to do this? I'm using codeigniter but I just need to understand how to do this with regular html/php. Some direction would be great.</p>
  
  <p>I added some javascript to do a get on the button click. </p>
  
  <pre><code>$(function(){
  $("#searchBtn").click(function(){
  
      $.ajax({
  
          url: "tablelist/searchquery/" + $('searchquery').val()
  
        });
  
     });
  });
  </code></pre>