loopj/jquery-tokeninput — Issue #225: Prepopulate some values in for loop
Author: usman0099
Created: 2011-12-01 07:24:46+00:00
State: open

hy, I have an issue in tokeninput.
i have a webpage and it can open in "ADD" or "EDIT " mode.
when i open it in ADD mode i applies token input to a search field . It works fine
but when i open the same page in EDIT mode i want previously selected values to prepopulate that search field.

im getting a json object which contain a NAME LIST which can be applied to token input for further add element. and another LIST of IDs of previously selected values. I just want to use a for loop to prepopulate search field with previously selected values using ids from my IDs list.

So in short i just want to kno is it possible to prepopulate using FOR loop.

Thanks
usman