• Autocomplete on content refresh

    I have a array[] of strings that prefills my autocomplete widget: var array = [<values prefilled from server>]; $(function(){       $( ".urlInput" ).autocomplete({         source: array     }); }) and everything works fine. On the page, there is an option that allows the user to add the values via AJAX that get inserted into the datasource that prefilled array.  After the successful AJAX request/response, I am trying to update the source of the autocomplete widget with the new value the user added.
  • Dynamic Dropdowns using Autocomplete and Posted Variables

    This is my first jsfiddle. I didn't so something right, so the display isn't quite right, but that's really immaterial. It displays correctly on my server. This is a simple example of two dynamic drop-downs using autocomplete. I'm not much at jQuery. I just need to know how to force a search on page load. I know there is this function, but I don't know how to implement it. $( ".selector" ).autocomplete( "search", "" );The user may enter characters from another form, or may not. If they do, on page
  • Autocomplete results in a div

    Is it possible to list autocomplete results on a separate div, instead of the search input? How? Thanks
  • jQuery Autocomplete: Help with implementation on textbox

    I've coded all the components for the jQuery autocomplete widget, but I'm having some trouble getting it to work. This is what I've done so far: 1. Added the following links to my PHP page's head: <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/redmond/jquery-ui.css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script> 2. Created
  • Always show the full list items in autocomplete menu

    Hi,  I am try to use a jquery autocomplete as dropdown menu, how can i make it always show all list items, even if an item is selected. Thanx
  • Autocomplete issue with viewmodel

    I have a simple form that is working just fine with Firefox 26 (latest version as of 12/26/2013) but when I run this form with Internet Explorer 11 I am not seeing the values from my two jQuery autocomplete controls being updated in my ViewModel. All other controls are working just fine. My autocomplete controls are of type input  but I have several other controls on the form that I have no issues with, just the autocomplete. Are there any known issues with jQuery autocomplete in a ... rendered in
  • autocomplete span

    I have a functioning autocomplete <input> control and I am seeing a <span> created with the number of results available.  When this <span> tag is created in the markup, upon successful completion, it shifts my <input> control to the right.  I would like prefer this be placed above the <input> control.  How can I accomplish this?
  • Best ComboBox Solution

    I have a question regarding Comboboxes. After a few searches i've seen a number of different versions of Jquery Comboboxes. On my site I need to populate a few comboboxes from a database table. Can someone please forward me to a good site with sample code of the simplest yet effective solution. I'd probably prefer to code it myself but i'm open to other options. Please Help..
  • jQuery autocomplete and event concept

    The jquery website gave the autocomplete code I needed, which specifically is autocomplete for a comma separated list of words.  But when I use the autocomplete code something does not work.  I am building a single page application where divs are being swapped in and out.   When I reach this function, I confirmed through chrome dev tools that my array of possible words has been generated after consuming a web service I built.  I must be missing something conceptually since I don't see anything wrong.
  • problems with autocomplete

    Hi, I am trying to develop an autocomplete search box on my site. I am almost completely new into jQuery, so I'm having tough time, I'd appreciate if you could help me a little bit. I suppose I have several errors. I have based my js code on http://jqueryui.com/autocomplete/ : $.widget('custom.catcomplete', $.ui.autocomplete, {     _renderMenu: function(ul, items) {         var that = this, currentCategory = '';         items.sort(function (a,b){             return a.category > b.category;        
  • Scrolling using keyboard does not work in autocomplete JQgrid

    I am not able to scroll the Autocomplete list of items using keyboard down/up arrow. In my JQgrid i have a textbox with autocomlete functionality. When the auto suggestion list appears, I am able to scroll through the list of items using mouse. But the scrolling doesn't happen when I use Keyboard. Please Help. My CSS portion for auto complete is   .ui-autocomplete {     position: absolute;     max-height: 200px !important;     overflow-y:auto !important;     overflow-x: hidden;     padding-right:
  • Autocomplete suggest size is larger in IE8 than in Firefox

    Hello, I use jquery ui 1.8.2 for make an autocomplete in a modal dialog. In IE8 the width of the suggest window is 1380px and in Firefox it's 188px. I've made tests with safari, chrome and opera. Only in IE width is so large. How can I set the size of autocomplete suggest window ? this my code : $("#ville").autocomplete({                     source: "http://myhost/magento/js/jquery/ui/php/ville.php",                     minLength: 1,                                     }); Thanks a lot, James
  • List elements in autocomplete menu didn't highlighted by touch event on iPhone devices

    Hi! I just updated to the ui version 1.10.3 and I found that, when I touch the autocomplete menu elements on iPhone, the elements didn't highligt as it happen with other links. This feature is worked before when I used the ui version 1.8.22. This is something bug, or just caused by a missing option? I didn't see anything in the API documentation about it.
  • Autocomplete overwriting _renderItem not working

    Hi all, Wondering if anyone can help - i've got this working in fsfiddle ( http://jsfiddle.net/andrewwhitaker/pjs7a/2/ ) But it won't work on the latest version of the jqueryui - in anything above v1.8.18 the +'TEST' does get added. Can anyone advise? Thanks
  • Multi-Column Autocomplete Issues

    I am developing a multi-column autocomplete.  I have three categories of items in my list which used to be just one column.  Now the UL contains three LI, one for each column and then I add in the items with a monkey patch using the _renderItem, determining which type is which item and adding it to the appropriate UL within the LI. The data appears correctly as expected and the open event works, but the hover and select do not.  I'm not all that concerned about the hover, I can accomplish this easily
  • jQuery Autocomplete with default selected in combobox

    Hello everyone I am using this script (Autocomplete) for my project, and now i want to pass default value like "BASIC" in Autocomplete combobox when page is load. How it is possible with this script? Any ideas or suggestions? Thanks.
  • Categories Selection

    Hello folk , I want to achieve something like this in jquery ..i have a list of categories i want to autocomplete categories in a text box and when users click on them it select that categories and new same text box appears . For better understanding look image below Looking for help Thanks
  • Autocomplete optimization

    I am using the conventional jQuery autocomplete.I am using it with mysql and jsp.The combo works fine except that the autocomplete does the job a little differently.When the user starts typing "Ti" the records showing up are tiger,tigress and so on.I want the autocomplete to show records like "White Tiger","Himalayan Yeti" as well as both those records have "ti" in it.Is there a way in which i can customize this? The records are retrieved from a mysql database(Just for information). Thanks, in advance.
  • listviewbeforefilter autocomplete functionality on an input text?

    I posted a question yesterday on that subject. I tried to make it as concise as possible, but maybe too much; I got 28 views and no suggestions :-( So, I will try to re-formulate the issue I am trying to solve. Although I am a newbie to JQuery Mobile, and light on Javascript, I _do_ have a JQM functional application running off AWS. The user can generate high quality graphics by entering/selecting appropriate parameters through a combination of checkboxes, select, input texts, etc... in a form. It
  • Autocomplete menu disappears on hover

    I have implemented autocomplete on this site:   Please go to the Input: PLZ. If you type e.g. 8, than the autocomplete Show a menu. But when i will select an item, it disappears unfortunately. why ? http://www.oneoffer.ch/Reinigung   Best Regards  
  • How to get jquery autocomplete values to search?

    The autocomplete part works, but clicking on the values in the drop down just puts them into the search box, and then I have to hit enter to perform the search. How do I get the values to search? <script> $(function () { var availableTags = ["SEO", "Responsive Design", "Google Local", "Twitter", "Social Media", "Web Design", "What is Google Authorship", "NFL", "Fantasy Football Rankings", "Kevin Sullivan", "Fantasy Football RB Rankings 2013", "Fantasy Football", "How to Buy Twitter Followers", "Advanced
  • Autocomplete working stange with special characters

    Hello, i have implemented an autocomplete function on my script, it works perfect EXCEPT when user hits ñ key. If user hits Ñ instead of ñ the script still works good, so my question is if anyone know what might be going on, if there´s kind of a mapping issue or how to solve it....... some examples, if user writes "Ramallo" the function returns json perfect. if user writes "cañuelas" script doesn´t return anything, but "CAÑUELAS, or caÑuelas" returns result ok..... Any hint?
  • jquery autocomplete with checkboxes removing as search

    On a page I have a search (input) box and below a few checkboxes with labels. The idea is as people type the variable projects are searched and the results in the list are replaced with the result. this would probably mean losing the whole list and re-writing it here is the js i am using var projects = [{ value: "open", label: "Open", },{ value: "inprogress", label: "In Progress", },{ value: "reopened", label: "Reopened", },{ value: "closed", label: "Closed", },{ value: "another", label: "Another
  • Autocomplete is returning case sensitive results when using a remote source.

    Autocomplete is returning case sensitive results when using a remote source. My remote source will return a JSON response that is case insensitive. For example: 'cap', 'Cap', 'CAp', 'CAP' all return the exact same response -> ["Cape Girardeau","East Cape Girardeau"]. However, the selection list only shows when "Cap" is type into the input area. Typing in "cap" does not show results. I have tried setting "matchCase" to false with no success. Any suggestion on how to make Autocomplete case insensitive
  • autocomplete issues

    I've searched this site, stackoverflow and general web searches looking at different tutorials and I'm still stuck. I have some simple Html: <label for="companyName">Company Name:&nbsp; <input id="autocomplete-companyName" name="companyName" type="text" size="36" maxlength="72" value="" /> </label> JavaScript: (document).ready( function() {       $('#autocomplete-companyName').val('');       $('#autocomplete-companyName').autocomplete({       source:'includes/autoCompleteFunctions.php',       minLength:2
  • autocomplete question

    I have a "tags" field that will hold a comma separated list of tags, like many forums and blogs use. I would like to use autocomplete to help with the last comma separated entry. Example: "Politics, Funny, Stu" will fetch "Student, Stupendous, Stupid ", etc. And selecting one of the options will only replace "Stu". I think I can use the search event to pull out "Stu", and I think I can use the select event to replace only the last comma separated entry. First question: Does autoselect already do
  • passing values with autocomplete

    I am building a data-entry form  with 2 fields. One called ' VERSION_ID' that I can populate with a simple php. For each VERSION_ID there will be several 'TRIM_ID's coming from a table with basically 2 columns, ie, 'TRIM_ID' and 'TRIM'. TRIM being the description of the trim. This table has about 300 items. TRIM is the column I want to show in autocomplete as this is the information the person entering the data knows, but the data I need to pass on for insertion is TRIM_ID. If I had less data I would
  • Basic Autocomplete (1.10.2) fails with IE7 and IE8 test VM's

    hi, I'm using some VM's from MS (running virtual box host) to test IE7 and IE8 with jQuery Autocomplete.  In both versions I get the same javascript error: 'label' is not null or not an object.  Line 7143 of jquery-ui.js. Code below.  Would really appreciate it if anyone can shed some light into this. Thanks! Tskeej <head> <script type="text/javascript" src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css"
  • My code is not working in autocomplete

    Im new to Jquery Here is my code <!DOCTYPE HTML /> <html>     <head>         <title>Demo</title>         <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css">         <script src="http://code.jquery.com/jquery-1.9.1.js"></script>         <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>         <script type="text/javascript">             $(document).ready(function () {                 var someJSON = ['Chai', 'Chang', 'Aniseed Syrup', 'Chef
  • Autocomplete not firing on first character

    Hi! I have implemented the jQuery UI autocomplete script, but the autocomplete is not firing on first character. I have an input field with a static value on page load. When I change this value, the autocomplete is not firing. When I delete the character I typed and type it again, the autocomplete is working. Am I doing something wrong? I can't find any information about this problem. var quantities = ['10','20','25','30','35']; $('#quantity').autocomplete({         minChars:1,         noCache: true,
  • Autocomplete (jqueryui) working only in Chrome

    Hi - I'm quite new to both js and jQuery, but so far I've been excited by how easy it is to accomplish difficult tasks.   However  it's full stop now. I have an autocomplete function that works excellent in Chrome. I have to make it work in IE9 as well, and I can't figure out what is wrong.   A request like: http://nrkdt58617/sn/api/suggestions/Makhatsj from the autocomplete function will return json.   I'm enclosing both my code and a sample json response. In advance, thanks a lot for any help,
  • using jquery autocomplete widget with json

    hi i am not able to understand how to get my json picked in autocomplete UI widget. for(var i=0, l = data.itemisedBill.length; i<l;i+=1){ var itemLength=data.itemisedBill[i].item; $(itemLength).autocomplete({ source: $[data.itemisedBill]     });   } It is giving exception in the source part? how should i give my json here. I json file is separate. Thanks
  • Autocomplete, Google Chrome, and onBeforeUnload

    I have several jquery ui autocompletes in a form that are being populated using ajax. When I load the page in Google Chrome, the onBeforeUnload event fires and cause the autocomplete attribute (which jquery ui sets to prevent the browser's autocomplete from interfering with the jquery ui autocomplete) to be removed (the fix for http://bugs.jqueryui.com/ticket/7790). The relevant line is 6053 in jquery-ui.js (v 1.10.1). This only happens in Chrome- FireFox and IE don't exhibit this behavior. I have
  • Autocomplete-Display suggested items starting with query character first instead of items which contains the query character

    consider data source:{asp, java,pearl}; By default if user enters 'a' suggestions are shown in this order-java,pearl,asp.  Instead I want the suggestions to be displayed in the following order: asp,java,pearl.
  • codeigniter jquery's autocomplete not working but no error

    Hello All :D I am newbie in jquery, i tried to use the autocomplete but i got a problem.  This is the link : http://stackoverflow.com/questions/15744214/codeigniter-jquerys-autocomplete-not-working-but-no-error Thanks :D
  • Autocomplete with Ajax and Autofocus should select even after a blur

    I know this is probably by design, but if you have an autocomplete with autofocus set, and the user tabs out or blurs before the list appears and an item is selected, the list never appears and no item is selected. I realize that this may be good from a theoretical programming browser perspective, but from a usability perspective, this is bad. Once a user gets comfortable using a form, the user will want to move faster. He will know and expect that when he types in "Rio" for example in a city field,
  • AutoComplete Problem - Styling of ui-autocomplete-loading Not Working

    I've taken the autocomplete demo, and I'm trying to set some feedback by styling the ui-autocomplete-loading class. I set the background to an image, but that image never shows when the search is running. I've confirmed the image is accessible, and if I step through the autocomplete code for the "search" event, it sets the style as it should, and in fact by stepping through the code, the image shows on the page.  But if I just let it run straight out without debugging the code, the image never shows
  • Autocomplete bug in handling Korean characters

    When Korean characters are copy/pasted into the input box, Autocomplete works.  When Korean characters are typed in and the down arrow key is used for selection, Autocomplete does not work, as reported by forum user idevsk, who I have been trying to help via the UI Forum. He says, this action used to work in jQueryUI 1.8.1, but the action does not work in any UI release after that. idevsk built a test script with Korean selections, and I implemented it in jsfiddle.net.  I am not set up to type Korean
  • auto complete clarification

    Hi, I am using - jqm1.3, my scenario is this I am able to construct and display the search listview via ajax / GET attached to a text search input item '<li data-theme="c" data-iconpos="notext"><a class="myfind" data-ajax="false" href="#" id="'+res[i]+'">'+names[i]+'</a></li>' // names is json return I am struck at these following 2 issues,   a) to populate in text item after I click on the listitem and listview hides ,  b) or when data-clear-btn="true" I tried this but no help $('li .myfind a').on('click',
  • Implement Jquery autocomplete with multiple values and images - AUTOCOMPLETE

    Hello Guys, I am facing a problem while trying to implement the jQuery autocomplete with a return images (made by a member of the Stack) but with the possibility of choosing various values ​​(Multiple Values). When I implement the source, he can only select one value only. Follow the jsfiddle: http://jsfiddle.net/Igaojsfiddle/85SAF/ I'm beginning to study the background now the jQuery library, please have patience and hope someone can help me with this problem. Already very grateful.
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of