jQuery - select change()
<p>I have 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>When I select option I want use alert() and display value. My code:</p>

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

<p>But is not good, what is wrong?</p>
