S
S
Sazoks2020-12-17 12:40:45
API
Sazoks, 2020-12-17 12:40:45

Yandex.Maps API, how to get an address in your input?

I connected Yandex maps with a geocoder to the site. It is necessary, when the user enters some address in the map, to take this address and insert it into your form, in order to send it to the server later. Please tell me how to implement this?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EastJesus, 2020-12-17
@EastJesus

Well, if on pure js, using document.getElementById, you look for the desired input, then insert the value into it: input.value = yandexMapValue
The same can be done on jQuery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question