Enabling search box in header section of datatable.
Enabling search box in header section of datatable.
purnesh
Posts: 1Questions: 1Answers: 0
I want to use sorting and search box in the header section of table. I can achieve it when I try to do with different rows. Is there any possible solution i can achieve this?
Code goes below :
$(".agent_input_search").live('click keyup', function() {
var filterArray = ["claimType","caseNumber","carrierType","trackingNumber","claimOpenDays","claimant.contact","claimedAmount.value","claimStatus",""];
var get_pos=$(this).attr('name');
var val=this.value;
//console.log("id = " + id + "value = " + val +"Table id = "+oTable);
var col = oTable.fnGetColumnIndex(""+filterArray[get_pos]+"");
//alert(col);
oTable.fnFilter(val,col,true,false);
});
This discussion has been closed.