我試圖禁用此CakePHP的組合:如何禁用CakePHP表單組合?
echo $this->Form->input('backupid', array('options' => $users_backup, 'class'=>'autocompletar', 'empty' => true, "label"=>__('Backup'), 'id' => 'cmbBackup'));
當我點擊這個複選框:
echo $this->Form->input('criticalresource');
我試圖添加屬性 '禁用' 和「只讀'in every combo element
The following image contains part of my DOM where you can see the Checkbox and the Combobox :
¿是否有任何方法禁用組合?我寧願選擇一個JS程序,但每個答案都是值得歡迎的!
謝謝你們!