K
K
kursof2017-08-09 11:23:47
css
kursof, 2017-08-09 11:23:47

How to embed a working function in js?

I use autocopy twitter typeahead

there is a function in the minLength: 0 options,

it is responsible for the fact that without the introduction of a word, a list is displayed when the input is clicked.

inserting it in principle is not difficult, looking at the example

$('.typeahead').typeahead(
  {
  minLength: 0,
},
                null, {
                name: 'stocks',
                displayKey: 'company_name',
                source: stocks.ttAdapter()
            }).on('typeahead:selected', function(event, data){            
                $('#typeahead').val(data.code);        
            });

But for some reason it doesn't work!

jsfiddle.net/7z9qA/221

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima Polos, 2019-03-25
@relows

Did you invent the overflow: none value yourself?
There is this: overflow: hidden.

0
0xD34F, 2017-08-09
@kursof

So?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question