Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6928783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:14:01+00:00 2026-05-27T11:14:01+00:00

I am successfully using the jQuery autocomplete combobox example. However, in the example, the

  • 0

I am successfully using the jQuery autocomplete combobox example. However, in the example, the source of the drop-down is created using a hard-coded value.

Of course I would like to use multiple combo boxes in my application. Unfortunately I don’t see a way to accomplish this.

The operative snippet of code in “combobox.js” is:

lastXhr = $.getJSON( "the_hardcoded_json_request_string", request, function( data, status, xhr ) {
...
}

I tried adding some lines above that that used “hasClass” to check for the existence of the class. Again unfortunately, I can’t even tell what object is calling this code. It has an undefined id, and my calls to hasClass are false. What in the hell?

My calls to combobox in my main javascript code look like this:

$("#myselect").combobox();

I am certain that () is used to pass some parameters if I want, but the declaration in combobox.js looks like this:

var cache = {}, lastXhr;
$.widget( "ui.combobox", {
    _create: function() {
...

Huh? I’m clearly no Javascript whiz, but I have no earthly idea whatsoever about $.widget, or how a call to “combobox()” just magically knows to call code from combobox.js. Please help if you can!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:14:01+00:00Added an answer on May 27, 2026 at 11:14 am

    I would try something along the lines of the following.

    (function( $ ) {
        $.widget( "ui.combobox", {
            _create: function(options) {
    
                // Some code
    
                var input = this.input = $( "<input>" )
                .insertAfter( select )
                .val( value )
                .autocomplete({
                    delay: 0,
                    minLength: 0,
                    source: options.source,
    
                    // More options...
    
                })
    
                // More code...
    
            });
        })( jQuery );
    
    $("#myselect").combobox({source: 'http://yoursite.com/your/sourceurl'});
    

    Observe the added options parameter in the _create function and the ‘option.source’ value for the source attribute of the wrapper autocomplete widget.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created WCF service in project. Now using Jquery I am successfully able
i'm using successfully a jquery datepicker with masked input plugin too in a aspx
I am using Jquery form plugin to upload file in Ajax request.File is successfully
I am using Jquery form plugin to upload file in Ajax request.File is successfully
I am using JQuery UI autocomplete on my website. I am creating the auto
I am currently writing an Edit Account module. Using jQuery.post(); I can successfully update
I am using jQuery Templates successfully but I have a blur function that is
Recently I started using https://github.com/crowdint/rails3-jquery-autocomplete It works great, but I was trying to set
I have been using jquery validate plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ . It has been working successfully,
I am using JQuery ajax for authenticating username and password, however due to security

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.