Link to home
Start Free TrialLog in
Avatar of VBBRett
VBBRett

asked on

How to Pull a property from JSON and make it an autocomplete input box

I am trying to make an autocomplete input list box in Jquery.  What I am a little lost on is that I am pointing to a JSON file from a RESTful url, the JSON file that is produced has a list and each record has more than one property.  Let's say I am trying to use employee last names and the department Id as a filter.  How could I filter and grab only the employee last names?  The JSON includes the first name, the employeeid, the last name and the department id for each record.
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBBRett
VBBRett

ASKER

Would this work pulling an array in JSON?
Check the example carefully, you will JSON array
Avatar of VBBRett

ASKER

OK, taking a look and will report back.
Avatar of VBBRett

ASKER

Is there a way to store the records into an array so that I could use the autocomplete Jquery function?
you mean you loose and go another direction ?