easyautocomplete

How show easyautocomplete dialog only if cursor is in input

只愿长相守 提交于 2020-06-28 19:41:31
问题 I'm trying set easyautocomplete on my input. Dataset i am geting from ajax json and there is some delay. If user is too fast and writes for example "Adam" and pushes tab, cursor skips to next input, but after easyautocomplete shows dialog on previous input and doesn´t hide it. Is there any way how to show easyautocomplete dialog only when i have cursor in input? var options = { minCharNumber: 3, url: function(phrase) { return "data?q=" + phrase; }, getValue: function(element) { return element

Font Awesome with easyAutocomplete plugin

夙愿已清 提交于 2019-12-11 04:29:59
问题 I have a form in which I want to show the input text field and submit on the same line. The input text field has two FontAwesome icons which I want to show inside the text field. I can style the form as I want when I don't use the easy Autocomplete plugin. But when I activate the easyAutocomplete plugin, the styling goes haywire. Here's the code: HTML: <form role="search" method="get" id="searchform" class="searchform" action=""> <span class="fa fa-map-marker my-fa"></span> <input type="text"