title: Onchange event after selecting in select dropdown list in ZEND
body: <p>I have a view with a dropdown list using select tag and I want to how can i have an event or an onchange event after selecting a value in my dropdown.</p>
  
  <p>here is my code in index.phtml</p>
  
  <pre><code>    &lt;?php if (count($users)): ?&gt;
      &lt;table class="table table-hover"&gt;
      &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th&gt;E-mail&lt;/th&gt;
          &lt;th&gt;Level&lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;?php foreach ($users as $user): ?&gt;
     &lt;tr&gt;
          &lt;td&gt;&lt;a href="&lt;?php echo $this-&gt;url('user/edit', array('id' =&gt; $user-&gt;id)); ?&gt;"&gt;&lt;?php echo $this-&gt;escapeHtml($user-&gt;first_name . ' ' . $user-&gt;last_name); ?&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $this-&gt;escapeHtml($user-&gt;email); ?&gt;&lt;/td&gt;
          &lt;td&gt;
              &lt;select name="level"&gt;
  
              &lt;?php $level = $this-&gt;escapeHtml($user-&gt;level); ?&gt;
  
              &lt;?php if ($level == 1): ?&gt;
                   &lt;option value="1" selected="selected"&gt;Administrator&lt;/option&gt;
                   &lt;option value="2"&gt;Manager&lt;/option&gt;
                   &lt;option value="3"&gt;HR Staff&lt;/option&gt;
               &lt;?php elseif ($level == 2): ?&gt;
                   &lt;option value="1" &gt;Administrator&lt;/option&gt;
                   &lt;option value="2" selected="selected"&gt;Manager&lt;/option&gt;
                   &lt;option value="3"&gt;HR Staff&lt;/option&gt;
                 &lt;?php elseif ($level == 3): ?&gt;
                   &lt;option value="1" &gt;Administrator&lt;/option&gt;
                   &lt;option value="2" &gt;Manager&lt;/option&gt;
                   &lt;option value="3" selected="selected"&gt;HR Staff&lt;/option&gt;
                  &lt;?php endif; ?&gt;
              &lt;/select&gt;
          &lt;/td&gt;
          &lt;td style="text-align: right;"&gt;
              &lt;a href="&lt;?php echo $this-&gt;url('user/delete', array('id' =&gt; $user-&gt;id)); ?&gt;" class="btn btn-mini btn-danger" rel="tooltip" title="Delete this user"&gt;&lt;i class="icon-remove icon-white"&gt;&lt;/i&gt;&lt;/a&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;?php endforeach; ?&gt;
      &lt;/table&gt;
  &lt;?php else: ?&gt;
  &lt;h3&gt;There are no registered users available.&lt;/h3&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Thanks in Advance</p>