title: Datatables get value fron a cell that have an input
body: <p>Ok, i'm trying to build a custom search, on my Datatables, i have a problem when i try to filter a column that have a <code>select</code>inside it.</p>
  
  <p>the problem start when i filter with the column <code>11</code> that have the next syntax:</p>
  
  <pre><code>&lt;select&gt; 
      &lt;option value="1"&gt;1&lt;/option&gt; 
      &lt;option value="2"&gt;2&lt;/option&gt; 
      &lt;option value="3"&gt;3&lt;/option&gt; 
      &lt;option value="4"&gt;4&lt;/option&gt; 
      &lt;option value="5" selected=""&gt;5&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>i use the next function to build a custom filter:</p>
  
  <pre><code>    $.fn.dataTable.ext.search.push(
          function ( settings, data, dataIndex) {
              dataFromFormat = getDataFromFormat( data[11] ); //return 1 2 3 4 5
              stringLike( dataFromFormat, $('#customSearch').val() )
          }
      );
  
  
  
  function stringLike(string, substring){
      if (string.indexOf(substring) !== -1) return true
      else return false;
  }
  
  
  
  function getDataFromFormat(datavalue){
      console.log(datavalue);
      if ( $(datavalue).is('a') ){
          console.log('a');
          return $(datavalue).text();
  
      } else if ( $(datavalue).is('input') ){
          console.log('input');
          return $(datavalue).val();
  
      } else if ( $(datavalue).is('select') ){
          console.log('select');
          return $(datavalue).val();
  
      } else {
          console.log('only text'); //enter here, because data[11] doesn't have the select syntax only the text contained in it (1 2 3 4 5)
          return datavalue;
      }
  }
  </code></pre>
  
  <p>but when i check what i have in my <code>data[11]</code> every time it returns:</p>
  
  <pre><code>1  2 3 4 5
  </code></pre>
  
  <p>only the text content, but not the HTML tags, and nothing, it should return the <code>select</code> itself, because that's the real content of the column 11.</p>
  
  <p>How can i get the real content, or, how can i get the value from the <code>select</code></p>