onclick and anchor tag value are not needed in filter option
onclick and anchor tag value are not needed in filter option
var oTable = $('#example').dataTable( {
"sPaginationType": "full_numbers",
"aaSorting": [],
"sDom" : 'rt<"bottom"ilp><"clear">',
"bFilter": true,"bInfo": true,"bPaginate": true,"aoColumnDefs": [
{ 'bSortable': false, 'aTargets': [ 0,6 ] }
],"aoColumns": [
{ sWidth: '5%' },
{ sWidth: '20%' },
{ sWidth: '15%' },
{ sWidth: '12%' },
{ sWidth: '12%' },
{ sWidth: '20%' },
{ sWidth: '15%' }
]
} );
$('#txtsearch').keyup(function(){
oTable.fnFilter(this.value,null,false);
return false;
});
i have written above code and when i am trying to search numeric value then i get value of anchor tag and href value in result and that i don't want i want only it html value e.g. Next if i put " 45 or javascript " value in search box then result must be null.
"sPaginationType": "full_numbers",
"aaSorting": [],
"sDom" : 'rt<"bottom"ilp><"clear">',
"bFilter": true,"bInfo": true,"bPaginate": true,"aoColumnDefs": [
{ 'bSortable': false, 'aTargets': [ 0,6 ] }
],"aoColumns": [
{ sWidth: '5%' },
{ sWidth: '20%' },
{ sWidth: '15%' },
{ sWidth: '12%' },
{ sWidth: '12%' },
{ sWidth: '20%' },
{ sWidth: '15%' }
]
} );
$('#txtsearch').keyup(function(){
oTable.fnFilter(this.value,null,false);
return false;
});
i have written above code and when i am trying to search numeric value then i get value of anchor tag and href value in result and that i don't want i want only it html value e.g. Next if i put " 45 or javascript " value in search box then result must be null.
This discussion has been closed.