0

I am trying to create a predictive input field, (if I start typing a word it should display the words starting with the same letter(s) from the array list), according to the value selected in that input field, it should display its dependent value.

I have an array as shown below:

var Vehicle = [
  {
    make:'Holden',
    model:'Captiva',
  },
  {
    make:'Holden',
    model:'Barina'
  },
  {
    make:'Ford',
    model:'Falcon'
  }
]

When a user starts typing H it should display all items starting with the letter H, and if I select Holden, it should display Captiva and Barina in the other Input field.

RobC
  • 20,007
  • 20
  • 62
  • 73
Aryan
  • 1

0 Answers0