How to ignore the A HREF tag from inside a column when populating the filter dropdown menu

How to ignore the A HREF tag from inside a column when populating the filter dropdown menu

mihaibmihaib Posts: 2Questions: 0Answers: 0
edited November 2012 in General
Hello guys,

I've implemented this example:
http://datatables.net/release-datatables/examples/api/multi_filter_select.html

Inside a table of mine which contains 8 columns.

Everything is great excepting for the fact that inside the 1st column I have a text string linked to an .html page.

When populating the dropdown menu that is displayed under that 1st column I see:
TextString">TextString

Inside that column I have:
TextString



The only thing that I've changed is:

$(document).ready(function() {
/* Initialise the DataTable */
var oTable = $('#example').dataTable( {
"oLanguage": {
"sSearch": "Search all columns:"
}
} );

Changed into:

$(document).ready(function() {
/* Initialise the DataTable */
var oTable = $('#example').dataTable( {
"sPaginationType": "full_numbers",
"iDisplayLength": 25,
"oLanguage": {
"sSearch": "Search all columns:"
}
} );

I've tried to add also:

"aoColumns": [
{ "sType": "html" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" }
],

just after the 'iDisplayLength' parameter, but this didn't make any difference.


What's wrong?

Thanks,
Mihai
This discussion has been closed.