Jump to content

Archived

This topic is now archived and is closed to further replies.

_tina_

Zend Framework - formSelect - Multi select

Recommended Posts

Hi,

 

I currently have in my view:

<?=$this->formSelect('data[var]', $this->data['var'], array('id'=>'var'), $this->var)?>

 

How can I make this a multi select box like:

<select name=mytextarea size=3 multiple>

 

I couldn't find anything in the documentation.

 

Thanks in advance.

 

 

Share this post


Link to post
Share on other sites

Nevermind, figured it out.

 

<?=$this->formSelect('var', $this->var, array('id'=>'var', 'multiple' => 'yes', 'size' => '3'), $var)?>

 

Thanks :)

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.