mardi 12 juillet 2016

Display values from a source in form of tags


I am using Bootstrap tags input plugin. I want to display some values in form of tags on a specified input field. These values are retreived from db most likely in json format. I followed to use add method as shown in the documentation https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples but could not make it work.

My fiddle demo is here: https://jsfiddle.net/Lh4jy9d4/90/ $('input #expertise').tagsinput('add', {id: 1, text: 'javascript' })


Aucun commentaire:

Enregistrer un commentaire