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

The Archive Base Latest Questions

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

In my form there are two DropDownList controls. 1st is enabled and 2nd is

  • 0

In my form there are two DropDownList controls.

1st is enabled and 2nd is disabled.

After selecting 1st dropdown I am changing selected value of 2nd dropdown using javascript.

Its working fine. But when I am trying to get selected value of 2nd dropdown, it will return value of first element (i.e. ‘select’).

Please refer my code

<asp:DropDownList ID="ddlStartTime1" runat="server" AutoPostBack="false" 
 Width="70" Enabled="false"></asp:DropDownList>

NOTE: I am using javascript to change selected value of 2nd(disabled) dropdown.

Javascript code:

$(document).ready(function() {
    $('#<%= ddlStartTime1.ClientID %>').change(function() {
        $('#<%= ddlEndTime1.ClientID %>').val($('#<%= ddlStartTime1.ClientID%>').val());
    })
});

Is there any alternate way to get changed value of disabled DropDownList?

  • 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-27T22:41:21+00:00Added an answer on May 27, 2026 at 10:41 pm

    If you are trying to read the value of 2nd dropdown (disabled one) at server, you will never be able to read the updated value, becuase data in disabled controls will not be posted back to server from client.

    You should either enable the dropdown before posting your data to server or use hidden controls to hold data of your disabled dropdown.

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

Sidebar

Related Questions

Below is simple HTML form , there are two sets of controls on the
I have an asp.net dropdownlist control. There are two ways it can be selected.
There is one form, inside the form there are many checkboxes. Two operations can
I've created two UserControls, a ValidationManager and a ValidationOutput. On a given form there
Backdrop: There are two forms, the main application form and a form to edit
There are two objects. The Windows Form with a button and a progress bar,
I am developing a student registration form in asp.net. there are two tables viz
A Jquery Modal is called with two form elements. There is also an option
i have two form. at form 1 there are: 1. one group of radiobutton
I have two php files: main.class.php form.class.php in these files there are two class

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.