Enter options manually in select box

QuestionsEnter options manually in select box
Mattias Cederlund asked 5 years ago

Hi!
I want to add manual select options and not use a database.
Like this:

<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>

Can you please guide me to how i should do this? I got it working with a DB but i need it manually.

Thanks!

1 Answers
Abu Ghufran answered 5 years ago

Pasting from docs:

Render as select (dropdown), with these values "key:value;key:value;key:value"

$col["edittype"] = "select";
$col["editoptions"] = array("value"=>'10:$10;20:$20;30:$30;40:$40;50:$50');

Your Answer

8 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?