I know somewhere is answer but i search everywhere.

I have json-server with large data http://localhost:3004/kody

Data looks like this:

    "name": "something",
    "postCode": "something"
    "name": "something",
    "postCode": "something"

now i want to do something like:

when i search in first input by name it display name and postCode in one line: name: something (postCode: something)

And when i click it populate first input with postCode and 2nd input with name.

Can someone help me ?

  • Hey Lukasz, how is this related to WordPress? And can you please post your jQuery code that isn't working? Is this more of generic JS question? Than you might be better off on Stack Overflow.
    – leymannx
    Mar 26 '19 at 18:09
  • 1
    Hello. Sorry it isnt related to wordpress.
    – Łukasz
    Mar 27 '19 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.