Enter options manually in select box

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

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

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

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


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

17 + 7 =

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 / 5. Vote count:

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

Let us improve this post!