jQuery DataTable - select number of result
<p>I use jQuery DataTable and I want call my function when I select number of results from dropdown. How can I do that?</p>

<p>DataTable generate code:</p>

<pre><code>&lt;div id="displayData_length" class="dataTables_length"&gt;
  &lt;label&gt;
     Show &lt;select name="displayData_length" size="1" aria-controls="displayData"&gt;
             &lt;option value="10" selected="selected"&gt;10&lt;/option&gt;
             &lt;option value="25"&gt;25&lt;/option&gt;
             &lt;option value="50"&gt;50&lt;/option&gt;
             &lt;option value="100"&gt;100&lt;/option&gt;
           &lt;/select&gt;
  &lt;/label&gt;
&lt;/div&gt;
</code></pre>

<p>So i try use function:</p>

<pre><code>$('select[name=displayData_length]').bind('change', function(event) {
    alert($(this).val());
});
</code></pre>

<p>But it is not good, because I don't see alert() when I select number of result.</p>

<p>How can I do that? Maybe is another solution?</p>
