이 onChange
이벤트가 작동하지 않는 이유를 알 수 없습니다. 어쩌면 내가 코드에 익숙해 져서 내 실수를 볼 수 없을지도 모릅니다.CakePHP onChange 이벤트
echo $form->select('capacidade', $options, null,
array(
'class'=>''
,'label' => ''
,'default' => '200'
,'onchange' => "javascript:checkForOther(this);"
)
);
생성 된 페이지의 소스가 있습니까 :
<td class="cellInput">
<?php
$options = array('200'=>'200', '500'=>'500', '1000'=>'1000', '2000'=>'2000', '5000'=>'5000', 'Outro'=>'Outro');
$attributes = array('legend' => false);
echo $form->select('capacidade', $options, array(
'class' => '',
'label' => '',
'default' => '200',
'onchange' => "javascript:checkForOther(this);",
));
?>
</td>
당신은 시도하고 이전 질문에 대한 답변을 받아 들여야한다. – abhinav