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

The Archive Base Latest Questions

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

I have a select on a page, which is transformed into slider using Filament’s

  • 0

I have a select on a page, which is transformed into slider using Filament’s Group selectToUISlider.

Another script on a page is attached to onchange events of the form elements. Every time user changes something, it recalculates the result.

Now here’s the problem – onChange event doesn’t fire for <select> when you use the slider, since <select> value is changed using plugin.

Here’s the fiddle to illustrate the problem: http://jsfiddle.net/t3aMe/

Is there a way to monitor a change in selectedIndex of a select? Or maybe there’s a way to plug into jQuery.val() function to make it trigger('change')?

  • 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-20T00:18:28+00:00Added an answer on May 20, 2026 at 12:18 am

    I suppose you could overwrite the val function:

    (function ($) {
      var val = jQuery.fn.val;
    
      jQuery.fn.val = function () {
        var result = val.apply(this, arguments);
    
        if (arguments.length) {  // e.g if this is a "set" rather than a get
          this.filter('select').trigger('change');
        };
    
        return result;
      };
    }(jQuery));
    

    This will trigger the change event for alll select elements in the page, though. You could add a massive hack:

    if (arguments.length) {  // e.g if this is a "set" rather than a get
      this.filter('select#select_test').trigger('change');
    };
    

    Working fiddle: http://jsfiddle.net/t3aMe/2/

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

Sidebar

Related Questions

I have a web page which contains a select box. When I open a
I have multiple select boxes on the page all of which share the same
I am trying to select all elements on the page which have the string
I have this query: SELECT page.id, revision.title, revision.number FROM page INNER JOIN revision ON
On my page I have a drop-down select box, with a default value of
I have made a Web page using jquery and php where all files are
I use VS 2008, .net 3.5 for generate page html using XSLT. I have
I have a signup form on my home page which uses server side validation
I have a php page which allows a user to sort pieces of information
I have a data view web part on a page which is displaying a

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.