title: How to pass two or multiple parameters in onchange event
body: <p>I have a table which displays name but its value is its userId, email and level </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" id= "level" onchange="changeLevel(this);"&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" &lt;?php IsSelected($level,2); ?&gt;&gt; Manager&lt;/option&gt;
                   &lt;option value="3" &lt;?php IsSelected($level,3); ?&gt;&gt;HR Staff&lt;/option&gt;
               &lt;?php elseif ($level == 2): ?&gt;
                   &lt;option value="1" &lt;?php IsSelected($level,1); ?&gt;&gt;Administrator&lt;/option&gt;
                   &lt;option value="2" selected ="selected"&gt;Manager&lt;/option&gt;
                   &lt;option value="3" &lt;?php IsSelected($level,3); ?&gt;&gt;HR Staff&lt;/option&gt;
                 &lt;?php elseif ($level == 3): ?&gt;
                   &lt;option value="1" &lt;?php IsSelected($level,1); ?&gt;&gt;Administrator&lt;/option&gt;
                   &lt;option value="2" &lt;?php IsSelected($level,2); ?&gt;&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>and for now, my select dropdown onchange event only passes the value of the selected value in dropdown to the ajax function that calls a zend controlelr</p>
  
  <p>here is the ajax function</p>
  
  <pre><code>&lt;script&gt;
  
  changeLevel = function(level){
          var level_value = level.value;
          var user_id = 
          alert(level.value);
  
      $.ajax({
          type: "POST",
          url: 'http://localhost/ijm/public/user/level',
          data: { function_params: level_value },
          Success: function(result){
              alert('Success');
          }
      });
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>and here is the user controller function</p>
  
  <pre><code>public function levelAction()
      {
  
          $storage = $this-&gt;getAuthService()-&gt;getStorage();
          $user = $storage-&gt;read();
          $request = $this-&gt;getRequest();
          $level = $request-&gt;getPost('function_params');
          echo $level;
              // Check if form values are valid
              $this-&gt;getUserTable()-&gt;editLevel($user-&gt;id, $level);
              $this-&gt;redirect()-&gt;toRoute('user');
              echo "success";      
  
      }
  </code></pre>
  
  <p>What I want is everytime i trigger the onchange event i also want the userId to be pass on the onchange event function so that I can send it on my zend controller. How can I do this? Thanks in advance.</p>