I'm using this jQuery token input to the user choose languages and submit it to his MySql database. (Like facebook settings)
Everything is working well, but I have no idea about how to Prepopulate the languages loaded from user's MySql database.
Example: mysql database result: 11,26,55
Legend: The user go to his profile's settings page, click on (Edit Languages).
<input type="textbox" name="profile_languages" id="pro_token_languages">
How to make the page prepopulate the three languages inside the textbox input?
11 => English (US)
26 => Portuguese (Brazil)
55 => Japanese