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

  • Home
  • SEARCH
  • 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 7044739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:26:44+00:00 2026-05-28T02:26:44+00:00

How to compare two jquery ui autocomplete combobox values, not input values that are

  • 0

How to compare two jquery ui autocomplete combobox values, not input values that are generated by jquery but <select><option value="foo"></option></select> values? How to get this values and compare them, everytime they are changed, either one of them?

enter image description here

  • 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-28T02:26:45+00:00Added an answer on May 28, 2026 at 2:26 am

    I did not reallt understand your question correctly the first time.

    I suppose you took the combobox code from the jQuery UI Autocomplete demo page ?

    If you look at the code, it triggers an event “selected” when a selection happens:

    select: function(event, ui) {
        ui.item.option.selected = true;
        // triggers the "selected" event
        self._trigger("selected", event, {
            item: ui.item.option
        });
    },
    

    As the combobox example uses the jQuery UI Widget Factory, you can easily bind an event handler for this event from the options when initializing the plugin instance:

    $( "#combobox" ).combobox({ 
        selected: function(e, ui) {
            // in here "ui.item" is the <option> selected
            // so you can use "ui.item.value"
        }
    });
    

    This will act as sort-of “change handler”. In it, you have access to the value through ui.item.value.

    Working example on jsfiddle.

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

Sidebar

Related Questions

I need to compare values from two tables that are identical but contain some
i want to compare two number values in a shell script (sh) but it
I need a function that will compare two values from two drop-down selectors and
How to add a rule using jquery validate.js to compare two textbox values ...?,
So I'm trying to figure out how to compare two jQuery objects, to see
I want to compare two ms-access .mdb files to check that the data they
I am trying to compare two decimal values in Java script. I have two
can i somehow compare two numbers in regex? i want regex that is correct
i need to compare two objects but compare a number of their properties in
I am looking to write a function in Jquery that compares two strings and

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.