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
Post a Comment