我有這樣多的複選框:樣式化表單助手多選複選框
<?php echo $this->Form->input('Power', array('type'=>'select', 'multiple' => 'checkbox', 'options' => $poderes, 'label' => false)); ?>
這就是產生這個HTML:
<div class="input select"><input type="hidden" name="data[Power][Power]" value="" id="PowerPower"/>
<div class="checkbox"><input type="checkbox" name="data[Power][Power][]" value="1" id="PowerPower1" /><label for="PowerPower1">Negociacao</label></div>
<div class="checkbox"><input type="checkbox" name="data[Power][Power][]" value="2" id="PowerPower2" /><label for="PowerPower2">Comerciais</label></div>
<div class="checkbox"><input type="checkbox" name="data[Power][Power][]" value="3" id="PowerPower3" /><label for="PowerPower3">Compras</label></div>
</div>
我想提出的一個<div class="checkbox">
和title
改變類。我嘗試了很多方法,並沒有工作。
我該怎麼做?
這太難了 –