title: CakePHP onChange event
body: <p>I have no idea why this <code>onChange</code> event is not working. Maybe I got so used to the code that I can't see my mistake. I'd appreciate your help:</p>
  
  <pre><code>&lt;td class="cellInput"&gt;
    &lt;?php
      $options = array('200'=&gt;'200', '500'=&gt;'500', '1000'=&gt;'1000', '2000'=&gt;'2000', '5000'=&gt;'5000', 'Outro'=&gt;'Outro');
      $attributes = array('legend' =&gt; false);
  
      echo $form-&gt;select('capacidade', $options, array(
        'class' =&gt; '',
        'label' =&gt; '',
        'default' =&gt; '200',
        'onchange' =&gt; "javascript:checkForOther(this);",
      )); 
    ?&gt;
  &lt;/td&gt;
  </code></pre>