Yii2 - Datatables filtering using column().search()
<p>I am using the Datatables in yii2..</p>

<pre><code>var table = $('#example').DataTable();

// #column3_search is a &lt;input type="text"&gt; element
$('#column3_search').on( 'keyup', function () {
    table
        .columns( 3 )
        .search( this.value )
        .draw();
} );
</code></pre>

<p>with this code, it can search for a certain column.</p>

<p>is there an equivalent code for this using a dropdown <code>&lt;select&gt;</code> instead of using <code>&lt;input type="text"&gt;</code>..</p>

<p>i wanted to use a dropdown type instead of the search box.</p>

<p>Sample Dropdown:</p>

<pre><code>&lt;select class="form-control-dropdown" name="month"&gt;
    &lt;option id='January'&gt;January&lt;/option&gt;
    &lt;option id='February'&gt;February&lt;/option&gt;
    &lt;option id='March'&gt;March&lt;/option&gt;
    &lt;option id='April'&gt;April&lt;/option&gt;
&lt;/select&gt;
</code></pre>