Drew Caplan
Drew Caplan

Reputation: 17

Smarty PHP Multi-Select

I am using a piece of software which I believe is using Smarty PHP. I would like to turn one of the drop-down menus from a select to a multi-select. Here is the current code

{html_options options=$brands selected=$val['brands']}

What would be the equivalent in a multi-select?

Upvotes: 0

Views: 896

Answers (1)

u_mulder
u_mulder

Reputation: 54831

I suppose you need to add multiple attribute to a select-tag:

<select name="" multiple>
    {html_options options=$brands selected=$val['brands']}
</select>

Upvotes: 1

Related Questions