選択入力が変更されたときに、選択入力領域から別の入力領域に値を自動的に転送しようとしています。でもできないんです。私を助けてください。コードは次のとおりです。
<?php
echo $this->Form->input('treatment',
array('options' => $types, 'id' => 'treatment_foo'));
echo $this->Form->input('fee', array('id' => 'fee_foo'');
echo $this->Js->get('#treatment_foo')->event('change',
$this->Js->request(
array(
'update' => '#fee_foo',
'dataExpression' => true,
'data' => '10'))
);
?>