i have one textfield and one show button.. i want after i have been type some string inside textfield then click that button... i can show all information from DB.. what's code to do that??
$(document).ready(function){
var oTable;
$("#show").click(function(){
var params=$("#myform").serialize();
$.ajax({
async: false,
cache: false,
data: params,
success: function(res){
oTable.fnReloadAjax();
oTable.fnFilter(res);
return this;
}
});
oTable=$("#form").dataTable({............
and for process page:
"SELECT ID,Name FROM DATA";