I am in the process of writing a script that builds upon user input,
I have some fields that its values need to be quired from the database,
and if no entry fo
Here's my solution with local json
$("#input").tokenInput(yourjsondata,{ preventDuplicates: false, onResult: function (item) { if($.isEmptyObject(item)){ return [{id:'0',name: $("tester").text()}] }else{ return item } }, });
Everything with id:0 is a new entry