Answer the question
In order to leave comments, you need to log in
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);
});
Answer the question
In order to leave comments, you need to log in
Did you invent the overflow: none value yourself?
There is this: overflow: hidden.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question