Re: showing selected items in a multiple select menu



Rowan wrote:


I have a form that has several multiple select menus. I would like to
save the multiple selections but be able to show them as selected
items when the form data is updated.

<select name="project_menu[]" size="4" multiple="multiple"
class="TabbedPanelsTabGroup" id="project_menu[]">
<option value="add">Add</option>
<option value="update">Update</option>
<option value="view">View</option>

I'm using a template to generate the form. Is there a checked option
that can be used to preselect the option when rendering the form much
like a value = "" option ?

Your template engine might provide a method of specifying the value of the select.
.