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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:47:56+00:00 2026-05-11T18:47:56+00:00

I have a dropdown: <asp:DropDownList id=dropdownid runat=server class=blah/> in my jQuery, I assign change

  • 0

I have a dropdown: <asp:DropDownList id="dropdownid" runat="server" class=blah"/>

in my jQuery, I assign change event like this:

$('#dropdownid').change(function() {......});

Now, this works when I select different value from the dropdown, however let’s say I want to select the same value again. (because I want to make another call with the same value)
So, when I select it again, (without changing the value) just by clicking on the selected value from the dropdown and “selecting” it again, no event fires.
Is there another event in jquery that I have to assign to it? what’s the workaround?

  • 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-11T18:47:56+00:00Added an answer on May 11, 2026 at 6:47 pm

    To expand Vincent Ramdhanie’s suggestion, take a look at doing something like this. Essentially, you end up with your own jQuery function that you can re-use elsewhere.

    Step 1: Create the jQuery Function

    (function($) {
        $.fn.selected = function(fn) {
            return this.each(function() {
                var clicknum = 0;
                $(this).click(function() {
                    clicknum++;
                    if (clicknum == 2) {
                        clicknum = 0;
                        fn(this);
                    }
                });
            });
        }
    })(jQuery);
    

    Step 2: Make sure that the newly created jQuery Function’s file is referenced for use:

    <script src="Scripts/jqDropDown.js" type="text/javascript"></script>
    

    Step 3: Utilize new function:

    $('#MyDropDown').selected(function() {
        //Do Whatever...
    });
    

    ORIGINAL INFO
    With your current code base, selecting the same value from the asp:DropDownList will not fire the change event.

    You could try adding another jQuery function for the .blur event. This would fire when the control loses focus:

    $('#dropdownid').blur(function() {......});
    

    If they blur function doesn’t work for you, I’d add a refresh button or something to that affect that fires the function you are trying to utilize.

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

Sidebar

Related Questions

I have an asp.net dropdown like this <asp:DropDownList width=95% ID=RessourceComposantes runat=server DataSourceID=Composantes DataTextField=Description DataValueField=ComposanteID>
I have an ASP DropDown, declared like this: <asp:DropDownList ID=DropDown1 runat=server OnSelectedIndexChanged=DropDown1_SelectedIndexChanged AutoPostBack=true> </asp:DropDownList>
I have a dropdownlist like this <asp:dropdownlist runat=server autopostback=true onselecteditemindexchanged=fire_event ID=DDL/> and on codebehind
I have two dropdown lists: <asp:DropDownList ID=Field_Type runat=server /> <asp:DropDownList ID=Field_SubType runat=server /> Field_Type
I have a static dropdown with the following html. <asp:DropDownList width=100px ID=dropDownActive Runat=server> <asp:ListItem
I have a DataPager control that looks like this: <asp:DataPager ID=page1 PagedControlID=ExperienceList runat=server PageSize=3
I have an ASP.NET DropDownList control that renders into a dropdown list (select HTML
I have the following multiview set up in my aspx page: <asp:MultiView id=MultiView1 runat=server
I have 2 DropDownList and a jQuery script with HttpHandler in server side I
I have a Datagrid which looks as under <asp:GridView ID=dgTask runat=server Width=100% AutoGenerateColumns=False> <Columns>

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.