Reputation: 592
I am using code igniter's form_multiselect
for my profile form. I want to show the selected value in select box after submit. Used code is like this:
form_multiselect('brand[]', $brand_list,'id="brand"');
I have tried set_multiselect
but doesn't work. can any one help!
Upvotes: 1
Views: 3989
Reputation: 7475
Pass the third parameter an array of selected values like:
form_multiselect('brand[]', $brand_list, array('small', 'medium'), 'id="brand"');
Upvotes: 2