0

<?php echo $this->formMultiCheckbox($this->form->options->getFullyQualifiedName(), $this->form->options->getValue(), null, array('1' => $this->form->options->getMultiOption('1'))); ?>

I have something like this, I want to add a css class to it. How could I do that with this helper?

Thanks

Matt
  • 7,049
  • 7
  • 50
  • 77

1 Answers1

1

Pass the class name with the third parameter ($attribs):

<?php echo
$this->formMultiCheckbox($this->form->options->getFullyQualifiedName(), 
$this->form->options->getValue(), array('class' => 'myclass'), array('1' =>
$this->form->options->getMultiOption('1'))); ?>

This will add the html attribute class="myclass" to the checkbox.

Michael Osl
  • 2,720
  • 1
  • 21
  • 36