jquery-ui-autocomplete

Passing extra parameters to source using Jquery UI autocomplete [closed]

二次信任 提交于 2019-12-18 14:02:44
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I'm trying to pass extra parameters for city and state using the jQuery UI autocomplete function. I've been trying to find an answer to this for a while

jQuery UI Autocomplete Multiple Values in Textbox

纵饮孤独 提交于 2019-12-18 13:33:49
问题 I need a simple autocomplete search functionality but also allowing users to type more than one value. I'm using jQuery UI's autocomplete widget (http://jqueryui.com/autocomplete/) and so far I've set the source to only search for the first letter in the suggestions. What I'd like to add now is the ability for users to search for multiple items from the same textbox. (i.e. after a comma suggestions are shown again) I have been trying to search on how this could be done. The only thing I've

Jquery autocomplete - custom html for result listing

為{幸葍}努か 提交于 2019-12-18 10:51:03
问题 I am referring to this plugin: http://jqueryui.com/demos/autocomplete/ So the original structure for the results is <ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all"> <li class="ui-menu-item"> <a class="ui-corner-all">item 1</a> </li> <li class="ui-menu-item"> <a class="ui-corner-all">item 2</a> </li> <li class="ui-menu-item"> <a class="ui-corner-all">item 3</a> </li> </ul> I need to make the links inside to look something like this: <a class="myclass"

How to make another ajax call upon selection of autocomplete text field value in ASP.NET MVC 4?

ぐ巨炮叔叔 提交于 2019-12-18 07:22:38
问题 I have an autocomplete text field, that uses JSON like so: $(function () { var src = '@Url.Action("GetParts", "Parts")' $("#autoCompleteBox").autocomplete({ source: function (request, response) { $.ajax({ url: src, async: true, dataType: "json", data: { partNumber: $("#autoCompleteBox").val() }, success: function (data) { response(data[0]); } }); } }); }); What I want to do is when the user selects the item from the suggested list is make another ajax call to get specific information about

jQuery UI autocomplete with JSON from URL

时光毁灭记忆、已成空白 提交于 2019-12-18 05:49:14
问题 I'm using the jQuery UI Autocomplete function. I can make it work with the example provided with jQuery UI like this: var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme" ]; $("#tags").autocomplete({ source: availableTags }); This works without any problems. But I need to use JSON as my data source who can be

jQuery - Use key/value pair in autocomplete

ε祈祈猫儿з 提交于 2019-12-18 04:55:22
问题 In my ASP MVC view, I am passing a key/value pair back from the controller. After looking at fiddler and viewing in Chrome's debugger I can see that the information is being passed back correctly. I would like for the value of the key/value pair to be the item that is displayed in the autocomplete list. When the user selects an item from the list, I would like that item's key to be placed into the text box. Here is the jQuery code from my view $(function () { $('#DRMCompanyId').autocomplete({

Jquery Autocomplete - no result message

梦想与她 提交于 2019-12-17 18:44:42
问题 I would like the autocomplete to display "no results" in it's drop down list if no result are found. My situation is like the JQuery default example. $(function() { var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme" ]; $( "#tags" ).autocomplete({ source: availableTags }); }); Thank you for your help. 回答1:

jQuery autocomplete UI- I'd like it to start the search onfocus without the user having to type anything

谁说胖子不能爱 提交于 2019-12-17 16:14:05
问题 jQuery autocomplete UI - I'd like to start the search "onfocus" and immediately show the list of choices when the user tabs or clicks into the search field without the user having to type anything. The default behavior seems to requires the user to enter a character or a down arrow to start the ball rolling and start the search and get the values even when I set the number of character required to zero. $( "#contact" ).autocomplete({ source: 'remote.php', minLength: 0 }); thanks! 回答1: A bit

Jquery UI Autocomplete: search from multiple attributes of one array

白昼怎懂夜的黑 提交于 2019-12-17 12:19:13
问题 Hi I'm trying to get the jQuery UI autocomplete widget to work so that it searches for matches from multiple attributes of my array (not just one that it does by default). I've messed around with their example, however I'm still unsure how to solve this. http://jsfiddle.net/FUZPN/ Here's my array format in script var projects = [ { value: "jquery", label: "jQuery", desc: "the write less, do more, JavaScript library", other: "9834275 9847598023 753425828975340 82974598823" }, { value: "jquery

Autocomplete requires you to click twice in iOS after update to 1.11.0

北城余情 提交于 2019-12-17 08:46:12
问题 Using jQuery 2.1.0 and jQuery.ui 1.11.0 Tested in iOS 7. iPhone and iPad Mini. Works on android and regular browsers. The problem We recently upgraded from jQuery UI 1.10.0 to 1.11.0 and now, when clicking an item in an autocomplete results list, you only get a hover, you have to click the same element again to get a click event. This used to work fine with version 1.10.0. (JSFiddle link in comments) What does not work using css {cursor: pointer} does not work using onclick="" does not work