kflorence/jquery-deserialize

Force adding options to multi select

Closed this issue · 1 comments

Hi!
I am using the select2 box in combination with jquery Deserialize, which works perfectly when not using ajax.
When using the ajax plugin, the options arent in the < select>< /select>, because they are not loaded yet (you have to search first).

Is it possible to make an 'force option', where the option is added to the like: < option value="{ID}"> The name would be empty, since its not safed with serializing. When its in the < select>, i can use select2 to load the name again. Thnx!

@datatrippers Sorry, I don't quite follow. Can you post an example somewhere?