Actually it is a basic question but I'm still a bit confused of this case.
Here I have data like this in my database:
id | rating
1 | A
2 | B
3 | C
If I try to set the combobox like this, it works..
My question is, How Can we set the combobox value based on the "rating" data like this?
// By the ID
I try the last code but it didn't work..
// in the combo list, B should be selected and when I want to save it, the combo will send '2' as the value
Could someone help me please?
Thanks in advance..