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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -