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 7606609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:27:12+00:00 2026-05-31T00:27:12+00:00

I need some guidance/advices from someone who has any ideea about custom jquery event.

  • 0

I need some guidance/advices from someone who has any ideea about custom jquery event.
From a html select I tried to create a “combobox” in which user can type a text and options list would be filtered by that typed text.
That way, html code for an select like

<select name="foo_select" id="foo_id">
    <option value="foo_option_value_1">foo_option_text_1</option>
    <option value="foo_option_value_2">foo_option_text_2</option>
    <option value="foo_option_value_3">foo_option_text_3</option>
</select>

would be replaced with

<div class="combo_container" id="foo_select_container" style="position:relative">
    <input type="text" class="combo_text" />
    <input type="hidden" name="foo_select" id="foo_id" />
    <div class="combo_arrow">
    <ul style="position:absolute;">
        <li id="foo_option_value_1">foo_option_text_1</li>
        <li id="foo_option_value_2">foo_option_text_2</li>
        <li id="foo_option_value_3">foo_option_text_3</li>
    </ul>
</div>

So when the user select’s a certain “option” from new created “combobox” in the input with class “combo_text” option’s text is inserted, and in the hidden input option’s id is inserted.

Now, all I need to do is to know when user select’s an option. Basically what I need to do is to create the equivalent of jQuery( ‘#foo_id’ ).change( function(){ do_someting } ); for my newly created combobox, but I have no ideea where to start.

If someone has any ideea I would apreciate.


Update.

I mention that I have tried to keep as much as I could the behavior of the html select. The combo box has functionalities like: on up/down arrows on focused combo.text the user can select a value, and on enter that value is changed, calling the function Select() or on escape nothing chages – even if user has selected other values using up/down arrows.

So I think I need to do something like.. when hidden input $( ‘#foo_id’ ) is changed do someting, so I need to find out when this input’s value is changed.


Thanks..

  • 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-31T00:27:14+00:00Added an answer on May 31, 2026 at 12:27 am

    So I have managed to find a solution and I posted maybe will help someone, and it goes like this:

    On hidden input I attached new event called cmbchange

    jQuery( '#foo_id' ).bind( 'cmbchange', function(){
         __do_something__
    })
    

    And in function Select() I have triggerd that event

    jQuery( '#foo_id' ).trigger( 'cmbchange' );
    

    Pretty simple if you think about it. Great thing that jQuery.
    Anyway thanks for the help.

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

Sidebar

Related Questions

I need some guidance around which approach to use to load binary files from
I am new in this field and i desperately need some guidance from u
Really need just some guidance : Topological sort by arcs definition (from my question)
I need some guidance on how to add a validation method to the jquery
Need some guidance on how to go about unit testing a shopping cart (.net
I need some advices and guidance related to TDD of android applications I'm developing
I need some guidance in getting value from the database within a week time
I need some guidance about XML parsing. in my case I have to parse
Has anyone worked with Salesforce mobilesdk for iOS and implemented push? Need some guidance?
Need some guidance figuring out what went wrong. I've been using mysql, phpmyadmin for

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.