[eluser]philfry[/eluser]
I have a table that is loaded on page load and it basically has some logic in the model that does a db query and then shows the results in a table. I have put a text box and a button at the top of the table and I want to be able to search and update the results on the page. I have tried adding some jquery that would look for a button click but i'm just not understanding what I need to do for this to happen.
this is my javascript but i'm sure i'm missing a big piece about what needs to happen. Any direction would be really helpful.
$(function(){
$("#searchBtn").click(function(){
$.ajax({
type: "post",
url: "tablelist/searchquery/" + $('searchquery').val()
});
});
});