You're right I didn't phrase my question in a way that's easy for understanding.
Let's say you're in a factory, which produces many parts, now, you need to select some parts.
Naturally for most people it's easier to remember part name than part number, in the meantime, some part number is well known because of very frequent use... hence, there's a need to auto suggest either a part name or part number, (and programming-wise, we want to pass ID along...) and let me modify the following sample,
var availableTags = [
{value:"pNum123",label:"engine widget"},
{value:"pNum345",label:"exhaustion pipe"},
{pN888,pN999}
]
Expected outcome:
typing any of the following would perform autocomplete:
eng
exh
pn8
pn9
Thanks in advance.