JavaScript Datatables tags search datatables search tags

I've been trying to get tags working with Jquery Datatables for about 1 week now with no luck! I've gone through stackoverflow and have not found the help i'm looking for.

This post here was insightful:

dataTables Column Filtering Plugin with Select Tags

I am using jquery.tag-editor to create the tags and using this code I can successfully create tags inside the global search box:

      $('div.dataTables_filter input').tagEditor();

my issue is that the tags are not filtering the Datatable as expected, I know that the table needs to be redrawn but from what I can see the tagEditor creates 3 div's inside a ul inside the searchbox:

    <li><div class="tag-editor-spacer"></div>
    <div class="tag-editor-tag">january</div>
    <div class="tag-editor-delete"><i></i></div></li>

with the middle div tag-editor-tag containing the string I want to use to filter the datatable. On change it should redraw the table using the value inside the tag-editor-tag div. I think this is close as I have seen to what I want it to do but have no idea how to ignore the divs and get the middle value.

    $('div.dataTables_filter input').change(function(){
    table.fnFilter($('.....').text()); 
    });

Any help is appreciated.

Answer:1

I am using Javascript ES6 classes. I have created a Player class as below: class Player { constructor() { ..... ..... } changeShipDirection(shipName, direction) { let redraw = ...

I am using Javascript ES6 classes. I have created a Player class as below: class Player { constructor() { ..... ..... } changeShipDirection(shipName, direction) { let redraw = ...

  1. javascript calling method
  2. javascript calling method from constructor
  3. javascript calling method within object
  4. javascript calling method name
  5. javascript call method by string
  6. javascript call method from another file
  7. javascript call method dynamically
  8. javascript call method inside class
  9. javascript call method every 5 seconds
  10. javascript call method after delay
  11. javascript call method from another class
  12. javascript call method without parentheses
  13. javascript call method by string name
  14. javascript call method in class
  15. javascript call method in same class
  16. javascript call method of parent class
  17. javascript call method asynchronously
  18. javascript call method if not null
  19. javascript call method by variable
  20. javascript call method on object

I have a simple application in angular 2. I want to display data in a paginated table. I found this example very nice and I would like to use in my app. Thehtml of the example is in home.component....

I have a simple application in angular 2. I want to display data in a paginated table. I found this example very nice and I would like to use in my app. Thehtml of the example is in home.component....

  1. include data table in angular

NewBie for d3.js. I try to remove xAxis, based on the method s.selectAll("g").remove(xAxis); but it does not work. Not sure if it is the correct way to remove xAxis? Thank you in advance. 1....

NewBie for d3.js. I try to remove xAxis, based on the method s.selectAll("g").remove(xAxis); but it does not work. Not sure if it is the correct way to remove xAxis? Thank you in advance. 1....

  1. remove element from list python
  2. remove element from array javascript
  3. remove element from array java
  4. remove element from vector c++
  5. remove element javascript
  6. remove element from array python
  7. remove element from dictionary python
  8. remove element from set python
  9. remove element jquery
  10. remove element from array js
  11. remove element from arraylist java
  12. remove element from dom
  13. remove element from numpy array
  14. remove element from list python by index
  15. remove element from array c++
  16. remove element from array php
  17. remove element from array matlab
  18. remove element from list r
  19. remove element from string python
  20. remove element from array ruby

I am trying to write a function that will remove all vowels in a given string in JS. I understand that I can just write string.replace(/[aeiou]/gi,"") but I am trying to complete it a different way......

I am trying to write a function that will remove all vowels in a given string in JS. I understand that I can just write string.replace(/[aeiou]/gi,"") but I am trying to complete it a different way......

  1. replace vowels string
  2. replace vowels in string java
  3. replace vowels in string python
  4. replace vowels in string c++
  5. replace vowels in a string javascript
  6. replace all vowels in string java
  7. replace all vowels in string python
  8. replace all vowels in string javascript