Populate JQuery TokenInput on AJAX event -
let jquery tokeninput attached text field pre populate parameter defined during initialization.
now want populate input field tokens on event trigger without re-initialization of plugin.
i have found solution of work. thats why posting here others can benefit answer.
let occupation field id "occupation".
$("#occupation").tokeninput("add", {id: 1, name: "software engineer"}); "add" function adds json record token on fly.
hope helps.
thanks
Comments
Post a Comment