A
A
Altf12013-11-30 20:46:10
JavaScript
Altf1, 2013-11-30 20:46:10

KLADR API and jQuery plugin. Strange behavior in Twitter Bootstrap 3 Modal form?

I want to use auto-completion from KLADR streets around the city in the project. but there was a problem.
If the input is on the page, then everything works perfectly.
If this input is placed on a Bootstrap3 modal form, then auto-completion does not appear.
What is the problem?
js code

$('#Street').kladr({
            token: KLADR_token,
            key: KLADR_key,
            type: $.ui.kladrObjectType.STREET,
            parentType: $.ui.kladrObjectType.CITY,
            parentId: KLADR_parentId
        });

HTML code
<div class="form-group">
<label class="control-label">Улица</label>
<div class="controls">
<input id="Street" type="text" class="form-control">
</div>
</div>

Answer the question

In order to leave comments, you need to log in

5 answer(s)
Y
Yuri Lobanov, 2013-11-30
@Altf1

And all classes, id and so on are filled in exactly the same way? Can you post both codes, as part of a modal window and just on the page?

B
Beagler, 2014-05-29
@Beagler

wrap the script in

$(document).ready(function(){

});

N
Nikita Kucherov, 2014-09-01
@develko

Maybe someone will come in handy, here you can always take a fresh KLADR . Plus sign up for updates.

B
Boris Benkovsky, 2014-12-18
@benbor

And how will a bunch of strangers help you decide if you have already tried to search?
Well, here I am answering you Symfony2. Healthy?
UPD: JoveLebedev : They will not answer you, because people have something to do, and not answer the same questions on the toaster. There are 10 such questions per week. "What should I choose if I don't know anything. What should I learn if I don't know anything"

A
Azim Kurt, 2014-12-18
@Symphony

QuickTime
FFmpeg
XNA Framework

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question