How to show text not value using select (edit type)?

QuestionsHow to show text not value using select (edit type)?
Joyce asked 10 years ago

How to show text not value using select (edit type) on grid load?

For example as below:
I want to show text "Red", "Blue", "Green"
But now on grid load , it shows value "1" ,"2" ,"3"

<select>
<option value="1"> Red </option>
<option value="2"> Blue </option>
<option value="3"> Green </option>
</select>

2 Answers
Abu Ghufran answered 10 years ago

Use

$col["formatter"] = "select";

Joyce answered 10 years ago

It's ok, thanks.

Your Answer

17 + 16 =

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?