I want to get the selected values in the multiple select input field on edit.
I am using select2 version:4
- I am having a product form which is having a field called "condition" which is using select2 multi select option.
- its working fine for now. i am adding these data to database as well.
- but when i want to edit the same product i waant to show the previously selected conditions items which are in database.
How can i achieve this in select2.
Please send me the link which helps me to do this.