title: DataTables Search Boolean
body: <p>I am having difficulty applying a search on a three state dropdown (any, yes, and no) on a Boolean column in my DataTables object.</p>
  
  <p>Here is a sample row of my data:</p>
  
  <pre><code>{
      "Id": 1,
      "FirstName": "John",
      "LastName": "Doe",
      "Email": "JohnDoe@email.com",
      "Elevated": true,
      "Activated": true
  }
  </code></pre>
  
  <p>This is my markup for the dropdown:</p>
  
  <pre><code>&lt;select class="form-control" id="elevated"&gt;
      &lt;option value=""&gt;Any&lt;/option&gt;
      &lt;option value="true"&gt;Yes&lt;/option&gt;
      &lt;option value="false"&gt;No&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>And this is what I'm using to search the column:</p>
  
  <pre><code>const elevated = $("#elevated option:selected").val();
  grid.column("Elevated:name").search(elevated).draw();
  </code></pre>
  
  <p>What is happening is that it will clear the search whenever the dropdown option is any, but whenever the dropdown option is yes or no it returns no rows.</p>
  
  <p>It doesn't matter if I set the option values to 1/0 or if I specify the RegEx parameter in the search method. The results are the same.</p>