2

I am trying to create a search box for searching structured data, where all the fields are known. I want to create a type ahead search box which has two types of typeaheads: 1. Type ahead for fields 2. Type ahead for values of a specific field. Image below shows what I am trying to achieve.

enter image description here

I already have the backends ready to serve typeaheads and searches. I am not able to figure out how to create a custom text field that can submit multiple form values and query multiple typeahead backends

This is a lot like gmail or kibana search boxes. Will appreciate examples or if someone can point me in the correct direction.

PS: A complete javascript newbie here. I can only understand pure js or jquery.

dOps
  • 730
  • 2
  • 7
  • 16

1 Answers1

0

I suggest using a jquery library would be easy option to this. Looking at your question, i think select2 or bootstrap multiselect could probably help you.

Aksh1693
  • 59
  • 7
  • I did look at both and tried to use them to solve my problem. To be honest, neither of them have what I am looking for. My problem is more of a nested typeahead, if you will. – dOps Aug 01 '18 at 03:35
  • oh ok!.. will surely let you know if i found something! – Aksh1693 Aug 02 '18 at 10:56