3,625 questions
0
votes
0
answers
106
views
How do I chain filters with django filter and django autocomplete light
I am trying to combine Django Filters (DF) with Django Autocomplete Light (DAL). I also want to chain the filter on a few fields in my model.
For instance, before applying the DF to my model, I'd like ...
-2
votes
1
answer
86
views
Jquery autocomplete but react and shadcn? [closed]
I have searched everything and everywhere I know.. Do you have any library that:
Uses shadcn
Is react
Can search
Can have multiple items saved (comma separated or something)
Uses fetch or whatever to ...
0
votes
0
answers
48
views
Add li items into jQuery UI Autocomplete so the native click handler works, with 2 optional parameters
Apologies in advance if the question sounds confusing. The code is complex so I'm trying to balance clarity without providing too many unnecessary details.
I'm using jQuery UI Autocomplete widget with ...
0
votes
1
answer
84
views
jQuery auto complete on Modal
A Bootstrap Modal is open when I click on #add. I would like to show autocomplete on a input box in Modal. My code is like below.
$("#add").on("click", function () {
var selector ...
0
votes
1
answer
27
views
Jquery-UI Autocomplete Setting Selected Text As 0
I have a table containing a row of textboxes - Category, Manufacturer and Model.
When the user types a value in to the Model field, I want to show an autocomplete box showing similar matches to what ...
0
votes
1
answer
70
views
jQuery autocomplete (ajax) not working in SPA [duplicate]
This works fine:
$("#Term").autocomplete({
source: '/ws/words.json?lang=en'
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script ...
0
votes
0
answers
15
views
jQuery autocomplete doesn't work on dynamically created input text fields? (ajax call included) [duplicate]
I have an input text with id school_name field that I would like to apply jQuery autocomplete on. I managed to make it work making an ajax call and fetch the data and show them as options but ...
0
votes
2
answers
156
views
Autocomplete with multiple inputs asp.net core
person!
I really need help, I'm trying to do an Autocomplete with multiple inputs in ASP.NET Core, but at the moment I'm only able to return one value. When I enter the person's name I can bind the ...
0
votes
0
answers
52
views
jQuery Autocomplete Firing to Wrong URL
I have a Jquery UI Autocomplete, defined like so:
$('.postcode-lookup').autocomplete({
source: function(request, response) {
$.ajax({
url: '/...
1
vote
1
answer
75
views
jquery ui-autocomplete is not showing the dropdown
In search box the ui-autocomplete dropdown has stopped working all of sudden. Server is returning the queryset but jquery is not executing response section.
My html form:
<form class="d-...
0
votes
0
answers
69
views
Why is my Jquery autocomplete not working on my search bar?
I have a search bar that should be visible in all my pages in django, however the autocomplete is not working.
my base.html has the following:
<link rel="stylesheet" href="//code....
0
votes
0
answers
97
views
Disable mouse over scroll in autocomplete
I have a list like the scrollable result example.
Link: https://jqueryui.com/autocomplete/#maxheight
In this example, when we place the mouse on the last option, the scroll bar automatically descends....
0
votes
0
answers
16
views
How to add tooltip on mouse hover on autocomplete options [duplicate]
I have written a function which implements autocomplete on the input field. In this function I am making an ajax call to get the data and then binding it to the input field and every thing is working ...
0
votes
1
answer
52
views
How to display result of autocomplete every property on separated Line instead using slash?
I work on an ASP.NET Web API. I face issue when I call the Web API using a jQuery Ajax request.
My issue is autocomplete result display separated by slashes:
Id - Name - Designation
but expected ...
1
vote
1
answer
115
views
Add custom div in end of jQuery UI Autocomplete with list
I want to add a custom div at the end of jQuery-autocomplete list
I tried adding that custom div under ul.
autoCompleteDiv.data("ui-autocomplete")._renderMenu = function (ul: JQuery, items: ...
0
votes
1
answer
40
views
google maps autocomplete unable to accept one specific address
Our website provides a taxi booking form for users to book taxis to or from Amsterdam Schiphol Airport. The issue lies in the unusual behavior of our two search boxes used for picking up and dropping ...
0
votes
1
answer
20
views
Jquery problem with json data in complex structure
My Jquery Autocomplete using the sample code from JQuery website work with below data from a url
[
"shirt",
"shirt two"
]
But wont work with below data [ data from a url ]...
0
votes
1
answer
462
views
How to fix "Failed to load resource: the server responded with a status of 500 ()" in ASP.NET MVC when I use autocomplete?
I am trying to achieve autocomplete feature that shows the matching data from db table when user inputs 2 letters in @html.textboxfor in razor page but keep getting 500 error every time I type input ...
0
votes
1
answer
759
views
jQuery UI Autocomplete in Bootstrap 5 Modal
I am trying to display a jquery ui autocomplete widget in a bootstrap 5 modal and it is not working. I already have the api endpoint written that is returning the data the widget is expecting (list of ...
1
vote
1
answer
576
views
how to make dropdown option width to adjust to it's longest content using bootstrap 5?
I'm trying to apply an autoComplete feature on my web app but I can't seem to find a way to make the options to adjust to the longest content.
the only thing I can do is to make it into a fixed length ...
-3
votes
2
answers
776
views
$(...).autocomplete is not a function Error occurs when the page is load
In my web application, I have added a text box and I wanted to search for data and show it while typing on it.
So I followed this video and added the same to my project. https://www.youtube.com/watch?...
0
votes
1
answer
36
views
Autofill fields form when selected value from database
I wish to do the same thing as this tutorial here but instead of populate every field separately, I wish when I select the first name, the other fields autofill according to the selected value of ...
0
votes
0
answers
20
views
Jquery - autocomplete - Returns specific code if the search failed
I need some help on an autocomplete, when I do a search everything works fine if the item is in the list, I get the ID and return it in the dedicated input.
But is there a way to return a code 9998 ...
0
votes
1
answer
53
views
Auto open jQuery UI autocomoplete on focus
I want the autocomplete to open the drodown automatically on input focus.
Here is my example:
$(".tag-input").autocomplete({
source: tagInputOptions,
sortResults: ...
0
votes
1
answer
889
views
SweetAlert2 with Autocomplete feature of JQuery UI
I would like to get jquery Autocomplete feature inside a sweetalert2 popup
Swal.fire({
title: 'Get Users',
html: '<input type="text" id="name" class="swal2-input" ...
0
votes
0
answers
39
views
Jquery UI Autocomplete not showing results properly after ajax call
I am trying to implement an autocomplete functionality in django application.
My view is as following
@require_POST
@login_required
def search_players(request):
search_query = request.POST.get('...
0
votes
0
answers
24
views
Set the value of jQuery combobox programmatically [duplicate]
I am using the combobox seen here. https://jqueryui.com/autocomplete/#combobox
I need to be able to programmatically select the value, but can't seem to make anything work.
If I do something like this ...
-1
votes
1
answer
303
views
Is there a way to remove partial postcodes from GoogleMaps autocomplete dropdown?
I need to remove the partial postcode (in the red box) from the suggestions dropdown on autocomplete, so that users can only select a full postcode.
How do I achieve this or does anyone have a better ...
1
vote
3
answers
2k
views
How to implement an autocomplete-datalist form field inside a CreateView in Django?
I am very new to web development and specifically using Django Framework.
I am trying to find a clean, efficient and non external package dependant implementation for an autocomplete-datalist form ...
1
vote
0
answers
103
views
Django autocomplete prompts are not working on a search bar text field
I am looking to implement autocomplete on a search field which is in the header of each webpage (layout.html). The search bar searches on a model field named 'Title'.
While the search itself is ...
0
votes
1
answer
70
views
autocomplete in django with jquery : display two fields in the form suggestion
I have in Django a view with an autocomplete search. In the logic of the script, I search for city name or I search by zip code. In the select form it works. Is it possible to display both at the ...
0
votes
0
answers
46
views
Potential reasons autocompleteclose event not available within a function?
I'm migrating some old code to a new site and there are lots of JS libraries being used so trying to pinpoint why this isn't working has been difficult. In short within a function I need this code to ...
0
votes
1
answer
40
views
Jquery Autocomplete with Ajax Call not working
Im adding enhancements to an existing rails 5.1 app. I need to add autocomplete with data retrieved from a Mysql database. The application has Jquery, simple_form, and materialize all included. My ...
0
votes
1
answer
273
views
How to trigger the select function when the value is selected after the tab is pressed
I have a combo box that enables the autocomplete function.
The project that I am working on currently uses the same code that is mentioned in the answer.
I have modified the code to select the value ...
0
votes
1
answer
297
views
autocomplete returning all results regardless of search key
I am trying to implement Jquery Autocomplete. I'm using the tutorial example from their site but so far it is returning all of my results regardless of what I enter for the search
<script>
$(...
0
votes
1
answer
97
views
Javascript function not updating variable instantly [duplicate]
Please bear in mind that I'm super new to Javascript and I'm still learning the basic concepts.
I'm working adapting the autocomplete function (using Devbridge autocomplete): https://github.com/...
0
votes
1
answer
365
views
Autocomplete appears behind modal form (bootstrap 4)
My autocomplete is showing behind the bootstrap modal, which makes it impossible to pick a choice.
I have seen different post suggesting something like this, but it didnt work for me.
.ui-autocomplete ...
0
votes
0
answers
296
views
Jquery multiple autocomplete textbox with data from database
I am trying to recreate this one from jquery https://jqueryui.com/autocomplete/#multiple
This function allows you to select a multiple data using textbox that acts like a dropdown. I am now recreating ...
0
votes
1
answer
130
views
Jquery Autocomplete custom column filtering not working
I am trying to create a text dropdown with autocomplete feature to filter the fields.But it's not working properly. The custom filter search function is also calling the previous filter value.Code ...
0
votes
1
answer
127
views
JQuery empty input not working with .val('');
I have a function that works in my JQuery autocomplete.
The function itself seems to work, but when selecting from autocomplete list, the line to empty the input is not working.
I re-created the issue ...
3
votes
1
answer
929
views
jQuery UI AutoComplete - How to handle multiple values ,when user removes a value in between the selected values
This is What I have :
I have a text box input element as below for loading cities autoloaded and a hidden field to list its ids:
<label class="col-sm-2 control-label" for="city_disp&...
4
votes
0
answers
399
views
Material UI version 0.20.0 Autocomplete does not support keyboard accessibility on key press
Hi I am using Material UI version 0.20.0 in my project. I am using the Autocomplete component.
When I search the value and select the value using mouse its gets selected but I when I navigate the ...
1
vote
0
answers
140
views
Dynamic jquery autocomplete in a table row repeater
I have a table with 4 rows and then 2 buttons where I can clone the row or delete an added row. In 3 of the 4 rows, I am using a jquery autocomplete widget with a combobox.
<...
2
votes
1
answer
323
views
Resize jQuery autocomplete UI according to the cursor position
I'm creating autocomplete feature for my own low level program executor.I need to get the autocomplete values near the alphabet typed like in VScode and other IDEs. But I have a problem with resizing ...
0
votes
1
answer
1k
views
how to display a default list of data when focusing a jquery-autocomplete input
I'm using JQuery autocomplete for listing product items and it is working fine.But i want to add a functionality that list all product on focusing that input before user type.
here is the jquery code.
...
0
votes
1
answer
344
views
Display another button with autocomplete in JS
I'm tring to do a autocomplete from json url, it works good.
Now what I want, it's when I click to the autocomplete, I want to display the import button and if input is empty or we put a new value (...
0
votes
1
answer
805
views
How to fill multiple input fields in a template using jquery autocomplete
I have been trying to fill multiple input fields using jquery autocomplete in my Django app.
As an example, my model is somewhat like this:
class Country(models.Model):
country_code = models....
0
votes
1
answer
1k
views
How to get async in jQuery autocomplete
I am using the jQuery autocomplete plugin. The situation is that the hint data is taken via the GET API method. I can't make the code wait until the end of accepting data from the API.
$('#...
-1
votes
1
answer
1k
views
Error : Uncaught TypeError: this.source is not a function
I tried to create Autocomplete using jQuery Ajax. Basically, I want to make autocomplete search with dynamic field added. But while I type in the input field then it gave me this error.
JS Code
$(...
0
votes
1
answer
444
views
jQuery UI - autocomplete widget show doesn't update ui-menu position
Whenever I search, the position correctly displays
But after some scrolling then displaying the results again using input.autocomplete('widget').show();
The position alignment is still the same as ...