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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:21:24+00:00 2026-05-27T12:21:24+00:00

I have an edit form that contains multiple select fields with selected options. Is

  • 0

I have an edit form that contains multiple select fields with selected options. Is there any way for detect rechanged (reselected)options with jquery?

(I want to show a value when an select box is rechanged in edit)

Edit:
In the edit form I have select boxes that have already ‘change’ status. I want to know when select boxes rechanged:

<select multiple='multiple' id='select1'>
  <option selected="selected">option1</option>
  <option>option2</option>
  <option>option3</option>
</select>
<select multiple='multiple' id='select2'>
  <option selected="selected">option3</option>
  <option>option4</option>
  <option>option5</option>
</select>

change() or onchange() could not be usable because inputs come with ‘change’ evet on document ready.

Thanks in advance

  • 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-27T12:21:25+00:00Added an answer on May 27, 2026 at 12:21 pm

    If you mean you want to detect a changed selection, without the actual focus being lost (which fires the change event), then you need to add other events such as ‘click, focusout, keypress’ etc. to your event management as you deem needed.

    $('#myselectboxid').on('change click keypress', function(){
      //do my thing here
    });
    

    You can even add custom events if you want – say you are making modifications (like a new selection) through code and want to fire those events.

    If you simply want to group the selections, you can do that using a class selector or an element selector:

    $('.myselectboxOneClass').on('change', function(){
          //do my thing here
    });
    
    $('select').on('change', function(){
          //do my thing here
    });
    

    OR use multiple

    $('.myselectboxOneClass, #myotherSelectId, .mySelectBoxTwoClass').on('change', function(){
          //do my thing here
    });
    

    From your edit: working example

    http://jsfiddle.net/vhy7w/

    Updated: to show initially selected, just add a trigger of the change on startup 🙂
    http://jsfiddle.net/vhy7w/1/

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

Sidebar

Related Questions

I have this function to edit all fields that come from the form and
I have asp.net form that contains fields. When I access this window, my javascript
I have the following problem in ASP.NET: there is a form that contains a
I have a HTML form that contains text fields, checkboxes, radiobuttons and a submit
If I have a form that contains a frame, and I edit the frame's
I won't want to have edit any working sets. I just want a way
I have an edit object view that contains a formset(one or many if this
I have an edit form that I'm displaying as an overlay using Jquery Tools.
I have a form JSP web page, this form contains multiple instances of the
Total beginner question about jQuery: I have a Form that contains several TextBoxes (input

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.