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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:52:58+00:00 2026-05-28T01:52:58+00:00

If I add some OPTION’s to a select list from client side javascript, that

  • 0

If I add some OPTION’s to a select list from client side javascript, that seems to break this control. Is this what’s supposed to happen?

IE, once I do this, I cannot get the value of my select list via going selectList.Value in c#.
I can’t even seem to change this element to not be a runat=server, it seems to disappear from the request.forms collection.

var Items = response.d;
var options = '';
$.each(Items , function (index, Item) {
    options += '<option value="' + 
               Item.ItemID) + '">' + 
               Item.Name + 
               '</option>';
});
//alert(options);
$('#object_id').html(options);
  • 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-28T01:52:58+00:00Added an answer on May 28, 2026 at 1:52 am

    I believe there’s some weirdness in general with select lists and innerHTML; not sure if that’s what jQuery uses in the background, but you might be better off adding the option elements directly using append() rather than through html().

    http://www.sitecrafting.com/blog/ltselectgt-tag-innerhtml/

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

Sidebar

Related Questions

I need to add some error checking to this function to make sure that
Is there some elegant way to add an empty option to a DropDownList bound
I'd like to add some functionality to a site that would allow users to
I'm thinking to add some code on the server side in asp.net, to verify
Is it possible to style the option elements of a select list/dropdown beyond background
I have some software under svn version control. It consists of sources that I
It seems to me that, in some ways, Java is where C was a
I try to add some C/C++ sources into JNI folder by dragging from explorer
I am trying to add some jQuery to a Wordpress site so that when
I'm hoping to add some html on either side of the output of 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.