Answer the question
In order to leave comments, you need to log in
How to transfer data from Kladr - API to the input tag?
I can't solve a simple problem, I guess.
There is a service
From the above link on my site I want to place an example with a map.
Here we have an auto-replacement of the address specified by the user using JS.
We display "Text representation of the address" and "Selected object"
<div class="addition">
<div class="block">
<p class="title">Текстовое представление адреса</p>
<p id="address" class="value"></p>
</div>
<div class="block">
<p class="title">Выбранный объект</p>
<ul class="js-log">
<li data-prop="id" style="display: none;"><span class="name">Код:</span> <span class="value"></span></li>
<li data-prop="zip" style="display: none;"><span class="name">Почтовый индекс:</span> <span class="value"></span></li>
<li data-prop="name" style="display: none;"><span class="name">Название:</span> <span class="value"></span></li>
<li data-prop="type" style="display: none;"><span class="name">Подпись:</span> <span class="value"></span></li>
<li data-prop="typeShort" style="display: none;"><span class="name">Подпись коротко:</span> <span class="value"></span></li>
<li data-prop="contentType" style="display: none;"><span class="name">Тип объекта:</span> <span class="value"></span>
<li data-prop="okato" style="display: none;"><span class="name">ОКАТО:</span> <span class="value"></span>
</ul>
</div>
</div>
<input type="hidden" name="id" value="" >
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question