Tokeninput - how to get results onReady -


i'm using tokeninput. while getting results onadd , ondelete works great, onready doesn't. chrome console says "uncaught typeerror: cannot read property 'gettokens' of undefined.". need save not inserted tokens prepopulation , guess that's script cannot handle. or i'm doing wrong.

    onadd: function (item) { projectresults=$("#inputproject").tokeninput("get"); console.log($(projectresults).serializearray()); },      onready: function (item) { projectresults=$("#inputproject").tokeninput("get"); console.log($(projectresults).serializearray()); },      ondelete: function (item) { projectresults=$("#inputproject").tokeninput("get"); console.log($(projectresults).serializearray()); } 


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -