如何从单个JS事件发送多个ID

时间:2018-11-01 04:38:51

标签: javascript ajax cakephp-2.0

我的视图文件中包含以下代码,我想从单个js事件向控制器发送两个不同的下拉列表ID,以填充第三个下拉列表?

<?php 

   $this->Js->get('#FieldId')->event('change', $this->Js->request(array(
           'controller' => 'users',
           'action' => 'check/DataName(view name)'
               ), array(
           'update' => '#result',
           'async' => true,
           'method' => 'post',
           'dataExpression' => true,
           'data' => $this->Js->serializeForm(array(
               'isForm' => true,
               'inline' => true,
           )),
       )) );
   ?>

0 个答案:

没有答案