Closed basith374 closed 8 years ago
Names are unique. So you don't should use objects in combination with tags-input.
but the names are fetched from a database. they may not be unique. besides, i only need their id's to post the data to the server.
wrong behavior. you should really use tags as they are. (in this definition) a comma seperated list of strings
you can try to map your list with ids on clienside (even here by name ;) )
something like: (after submit, before send to server)
var tags = mytagelement.getTags();
for (x in yourobjlist)
{
if (tags.indexOf(yourobjlist[x].name)....
.....
.....
}
ok thanks for the advice
i've the following array:
i need to get the names as suggestions and store them as objects in the input field so that i can later retrieve them by id. how can i do this?