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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:50:24+00:00 2026-05-25T02:50:24+00:00

I have following combobox contexts :- <select name="destination" id="destination" style="width: 125px;" onchange="onChangeDestination(this.value,’0′);"> <option value="2"

  • 0

I have following combobox contexts :-

 <select name="destination" id="destination" style="width: 125px;"
         onchange="onChangeDestination(this.value,'0');">
     <option value="2" selected>2</option>
     <option value="3">3</option>
 </select>

Now I am selecting a value as "2" and submitting the form. Next time when I come to the same page I set values in combobox dynamically.

So instead of showing the value as "2" It showing me blank field having no value in IE.When I check the values, it shows me both ("2" and "3"). Once I again select any value then blank field disappears.
Again same issue comes when I refresh the page.

Please find image for reference

  • 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-25T02:50:25+00:00Added an answer on May 25, 2026 at 2:50 am

    I tried but I can always see it (using IE9 here):

    Live example at JsBin

    But now that you posted an image, please let us know what is your DOCTYPE…

    I’m sure that you are using an old one and you need to specify:

    <option value="2" selected="selected">2</option>
    

    instead of what you have.

    And by the way… you should have a “Please select” option as if you don’t run on DOM ready the onChange code how would you want the user to see 2 textfields without choosing 3 and then back 2 …

    an <option value="-1" selected="selected">Please select</option> would do the trick where in the javascript method, if ( parseInt(a, 10) == -1 ) return; will avoid any textboxed creation.

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

Sidebar

Related Questions

I have the following fragment of XAML: <ComboBox Name=comboBox1 IsEditable=True Text=test TextBlock.TextAlignment=Right /> How
I have following combobox: <ComboBox x:Name=cmb2 ItemsSource={Binding SignCollection, Mode=OneWay}/> Sign Collection is List and
I have included the following style for ComboBox , which I happened to find
I have a following XAML: <ComboBox Name=groupComboBox ItemsSource={Binding Path=MyServiceMap.Groups} DisplayMemberPath={Binding Name}/> In the code
I have XML in the following format: <Products> <Product name=MyProduct1> <Components> <Component name=MyComponent1> <Teams>
I have following code that is generating random no. between 1 to 10. This
I have the following table structure: I'm trying to populate a combobox of all
I have the following scenario. I have a combobox where multiple selection is available.
Background I have a Windows Form with the following items: ComboBox TextBox Two Buttons
Ok, firstly I have the following code working.. although my question is this; should

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.