Tagged Questions
0
votes
2answers
37 views
How to customize JqueryUI Autocomplete [closed]
I need to customize default auto-complete search box and replace the text with text and a image. This is my sample code.
<script>
$(function() {
var availableTags = [
"ActionScript",
...
1
vote
2answers
67 views
Assign JSON to autocomplete
I have the following string representation of an actual JSON object returned from my service:
[
{
"label": "#1 Pizza [99999]",
"value": "99999"
},
{
"label": "001 Test Facility ...
1
vote
1answer
233 views
Unable to get value of textbox in jquery autocomplete
I am using jquery 1.9.1.js and jquery-ui-1.10.3.custom.min.js. I run on IE9 browser with the error "Unable to get value of the property 'toLowerCase': object is null or undefined". Below is my code.
...
0
votes
2answers
46 views
Jquery autocomplete suggestions - small font list
Jquery Autocomplete suggestions list font is very bigger ,I want to be small like typing in text box font need. how to restrict with small fonts in suggestions list ? Please see the below screen and ...
0
votes
0answers
79 views
jQuery UI Combobox Refresh Dropdown <ul>
I have an autocomplete with a custom source function:
source: function(request, response) {
var matcher = new RegExp($.ui.autocomplete.escapeRegex(request.term), 'i'),
data = ...
0
votes
1answer
65 views
JQuery UI AutoComplete - can't get data typed in the input field
I've changed the standard method of Jquery UI autocomplete to use POST instead of GET:
$(function () {
var data = $(this).val();
var dataString = 'location=' + data;
...
0
votes
0answers
33 views
Implementing autocompletion with dropdown list
I am trying to implement a JavaScript app in which a user can add text to a text box.To simplify the process of adding several variables such as email".com", I want to add feature like autosuggestion ...
0
votes
0answers
36 views
autocomplete ui focus event handler
How can I add new my event to the already created <input> which uses jquery autocomplete ui?
$(document).ready(function() {
$("input.myInput").focus(function() {
alert('hello');
...
2
votes
4answers
317 views
JQuery autocomplete how to write label in autocomplete text input?
Hello I am using jQuery UI autocomplete.
I am getting values and labels from the drop down area. I will write the value in a hidden input and use it later. I could do that, but I cannot write the ...
0
votes
4answers
218 views
Jquery autocomplete not working
My autocomplete is not working , i have alerted the response from ajax , it is json
<script src="../jquery.js" type="text/javascript"></script>
<link ...
0
votes
0answers
80 views
jQuery UI autocomplete: prevent arrow key selections from wrapping list
With jQuery UI autocomplete, the default behavior is for the down arrow to focus each possible item and then wrap the list (first item is focused after the last). The up arrow wraps the list in the ...
0
votes
2answers
338 views
Google auto complete on textbox?
I want to show all google search auto completes in a textbox.
After searching google i found "http://google.com/complete/search?output=toolbar&q=test" link that is return a xml data contains ten ...
0
votes
1answer
111 views
preventDefault stops window.location.href from working
My site has two ads on it, one of them uses a script which parses all links on the site and does preventDefault() on them... this makes it impossible for me to use preventDefault() on any links since ...
0
votes
1answer
158 views
jQuery UI Autocomplete Suggestions Not Closing on Select
I have an odd problem with a jQuery UI autocomplete. I want it so that when the text field gets focus, a list of all options in the autocomplete comes up. This works, but when selecting an item by ...
0
votes
0answers
40 views
how to manually enter the options in jQuery ui autocomplete
I have an API, which returns an array like this
response = [["ACAMPO,SAN JOAQUIN,039","ADELANTO,SAN BERNARDINO,036",
"ADIN,MODOC,025"]["ACAMPO","ADELANTO","ADIN"]]
...
0
votes
2answers
237 views
jQuery UI autocomplete - matched option not getting selected on focusOut
I have made a jQuery UI - autocomplete in which I have added the following conditions:
Sorted option list
mandatory select an option
Here I made a mistake that, when I type the exact option, it is ...
0
votes
1answer
44 views
How to update ng-repeat variable using autocomplete?
Thanks to SOF for solving my last issue in angularjs and autocomplete.
Angularjs with jquery auto complete not working
Now, I have an issue of same type in ng-repeat...
In View
<tr ...
0
votes
1answer
192 views
Angularjs with jquery auto complete not working
I am trying for the past 5 hours without success...
Here is the code..
In View:
<input type="text" ng-model="foo" auto-complete/>Foo = {{foo}}
In controller:
...
1
vote
1answer
145 views
Modify jQuery autocomplete not to submit eagerly on Enter
Our users complain that when they press the enter key after pasting or typing values in a jQuery autocomplete widget the form is submitted.
It's extremely annoying them when they copy-paste a value ...
0
votes
0answers
124 views
jquery ui Autocomplete categories AND autosubmit
I try to use two features of jquery autocomplete : categories display and autosubmit (when selecting an item).
Each of them works fine but not simultaneously.
Here's my code :
$.widget( ...
0
votes
1answer
31 views
suggestion: search fist character inside a mark
I am using suggestion of this page: http://jqueryui.com/autocomplete/
I have a list like below
var availableTags = [
"ActionScript (bang ping)",
"AppleScript (htore) ",
"Asp (biga) ",
"BASIC ...
1
vote
0answers
73 views
Struts2 jQuery Autocompleter Not Escaping ASCII
I am currently trying to find a way to escape ASCII or special characters in my autocompleter, but with no luck. I am using the Struts2 jQuery autcompleter, and when there is an & in the list, it ...
-1
votes
1answer
410 views
Call function within autocomplete jQuery plugin [closed]
I'm work with autocomplete jquerry plugin. but i have face two main problem on this
Call a function within autocomplete function
Also get the value of textbox to pass with function
Html
...
1
vote
1answer
213 views
jQuery autocomplete data undefined error
I am using jquery v 2.0.0 and jquery ui 1.10.3
Following is my jquery ui autocomplete code:
$nameField.combobox({
source: people,
buttonSelector: '.toggleList',
...
1
vote
1answer
64 views
How to conditionally load an external json file from a cdn into my javascript?
I have a json file hosted on a cdn. I have a mobile app which needs to have a minimal memory footprint and a minimal loadtime. Right now, I have the json file served from the server through a RESTful ...
0
votes
0answers
58 views
jQuery TagIt Allow New Values
I'm using jQuery Tagit and the integrated jQuery UI Autocomplete integration to try and get a working tag system with suggestions based on existing tags. The problem is that right now the autocomplete ...
1
vote
2answers
348 views
Search within string using typeahead.js?
I would like typeahead.js to behave like jqueryui autocomplete with regards to how it matches items. Using jqueryui autocomplete it's possible to search inside the text items. In typeahead it's only ...
4
votes
1answer
3k views
Styling JQuery UI Autocomplete
Fiddle
I'm trying to style the sections inside the AutoComplete, but I don't know what to put in the CSS for the sections. I'm specifically trying to make:
color: #96f226;
border-radius: 0px;
...
0
votes
1answer
113 views
How to focus the last Element in a JQuery UI Autocomplete
I use JQuery Ui Autocomplete and position the suggestion box above the input field as shown in the image below. When I use autoFocus: true I can set a focus on the first element of the list.
Now, I ...
0
votes
1answer
150 views
jQuery UI autocomplete doesn't work when going to page via page navigation
I googled like crazy, searched here on SO and tried a lot of things but nothing seems to be working.
Problem:
I have autocompletion in my Rals4 application, and the problem is that it doesn't work ...
1
vote
1answer
232 views
How to manually focus/highlight an item in jQuery UI Autocomplete?
I am using jQuery UI 1.10.2 and I would like to manually highlight/focus an item in the list. Basically, I am trying to achieve a HTML select-like behavior:
All the results from source should always ...
1
vote
1answer
72 views
Source of a jQuery autocomplete being the value of a hidden input variable
I'm using jQuery's autocomplete, but I'm having problems getting the source to refer to the value of a hidden input on the page.
This is the hidden input field:
<input type="hidden" ...
0
votes
1answer
535 views
getting jQuery ui autocomplete to work with @mentions only
I've had a look at a few questions, such as http://stackoverflow.com/a/7222592/2332251
I'm still having trouble reconciling it with the code I have.
At the moment the following works perfectly for ...
0
votes
1answer
101 views
jquery autocomplete with input array
I am using the following formular:
ROW1: <input class="search" name="pos[]" value=""><input name="str[]" value="">
ROW2: <input class="search" name="pos[]" value=""><input ...
2
votes
2answers
580 views
How can I add a `loading…` icon to jQuery UI's autocomplete widget
I'm trying to modify jQuery's autocomplete widget to have the input's background color change while the script is searching for suggestions. Here is my attempt (or have a look at my attempt on ...
0
votes
1answer
553 views
jQuery autocomplete 1.1: Show All Data on focus
How to make this extension show all data on focus?. I have tried to change minChars to 0 but it only show when the input double clicked.
$("#month").autocomplete(months, {
minChars: 0,
...
1
vote
1answer
140 views
How to customize jquery ui autocomplete?
I am using jquery ui autocomplete, and for the list of terms that appears in the dropdown, is there a way so that you can categorize the terms? Basically what I want is: In the dropdown menu, ...
0
votes
2answers
144 views
jquery empty concatenation with qjueryui's autocomplete
I have to add some html form with autocomplete feature to some site. I have done it many times using jqueryui's autocomplete, but this time something goes wrong. The situation is supposed to be like ...
1
vote
2answers
352 views
JQuery- clear field on lost focus unless the field was populated from dropdown
I have a textbox where the user puts in some text, and a dropdown appears. When the user selects something from the dropdown list, the text from the dropdown replaces the text that they typed.
Now, I ...
0
votes
1answer
409 views
jQuery autocomplete for innerHTML generated textbox
I realize similar questions have been asked thousands times and yet it doesn't seem to work for me. I have a textbox called "movieTitle", it is generated via Javascript by clicking a button. And I'm ...
1
vote
2answers
3k views
How to bind keypress event in jquery autocomplete?
As you can see in http://jsfiddle.net/hn838/4/ 'click' is working fine for autofiller, But I want to trigger same code on enter key keypress also, but it is not working for me. My code is here for ...
0
votes
2answers
334 views
jQuery autocomplete and locally fetched json data
I am struggling with jQuery UI Autocomplete and reading the autocomplete values from a variable that stores all the data returned from a json array. This is what the JavaScript looks like:
function ...
0
votes
0answers
270 views
Enhanced jquery autocomplete popup
I am trying to add more functionality to my jquery autocomplete by adding a popup on focus. The problem that I am having is getting the popup to correctly inherit the dropdown.
1) When you click on ...
0
votes
1answer
91 views
Mixing a queue of callback functions and jQuery deferreds
I am trying to create a queue of functions to be called to return autocomplete results. Some of them are functions I construct myself from $.getJSON calls and some are provided to me by external ...
1
vote
1answer
130 views
data(“autocomplete”) is undefined in TypeScript
I use this code in my app (to override _renderItem);
var ac: JQuery = $("<input/>");
ac.addClass(this._autocompleteId);
ac.appendTo(container);
ac.autocomplete(options);
var renderItem = (ul: ...
0
votes
1answer
485 views
jQueryUI Autocomplete with default text
I have a jQuery auto-complete widget which has some default shaded text in the input such as "Enter Something" http://jsfiddle.net/CwmX9/. After the user types something into the input field and ...
0
votes
1answer
267 views
jQuery UI Autocomplete Search
I want to use jQuery UI autocomplete so the user can search for items.
I have a list of products that I need to make into JSON (or just include them in JavaScript like jQuery UI's demo has) but is ...
0
votes
1answer
674 views
Jquery Autocomplete key press down display label name rather than value?
Is there a way you can force jQueryUI autocomplete to display data label rather than data value:
For example
...
0
votes
2answers
122 views
positioning jquery-ui-combify
I am using jquery.ui.combify.
Following is my HTML file:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" ...
1
vote
0answers
80 views
Retrieving multiple attributes using autocomplete - json encoding
While creating an input field with tags (like Stack Overflow), I came across tag-it. With the help of this and jQuery autocomplete, I am able to create similar functionality.
$("#to").tagit({
...