Removing html from dropdown list ?
Removing html from dropdown list ?

Hi all,
Consider the following cell:
<td>Some value<div class="myclass">Some text</div></td>
How can I completely remove (including text) the div tag from the dropdown list of the column filter and from the search as well ?
I tried the columnDefs option:
columnDefs: [
{ targets:0, type: 'html' }
],
but it doesn't work.
Can someone help me ?
This discussion has been closed.
Answers
https://api.jquery.com/remove/
Make sure you execute the jQuery when the DOM element exists. You could use the draw or the init event for that.