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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:40:42+00:00 2026-06-10T19:40:42+00:00

I have the jQuery UI multiselect. I need the selected values on button click

  • 0

I have the jQuery UI multiselect. I need the selected values on button click in the codebehind.

.aspx Page:

 <select id="countries" runat="server" class="multiselect" name="countries[]">
    </select>

    <asp:Button id="Submit" runat="server" OnClick="btn_OnClick"></asp:Button>

.cs Page:

protected void Page_Load(object sender, EventArgs e) {
   countries.Attributes.Add("multiple", "multiple");
   for(int i=0; i<10; i++) {
      countries.Items.Add(i.ToString());
    }
 }

protected void btn_OnClick(object sender, EventArgs e) {   }​
  • 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-06-10T19:40:44+00:00Added an answer on June 10, 2026 at 7:40 pm

    .aspx Page:

    <link rel="stylesheet" href="css/common.css" type="text/css" />
    <script type="text/javascript" src="js/page.js"></script>
        <link type="text/css" rel="stylesheet" href="css/themes/smoothness/jquery-ui-1.7.1.custom.css" />
        <link type="text/css" href="css/ui.multiselect.css" rel="stylesheet" />
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <link href="js/style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="js/jquery-ui-1.8.custom.min.js"></script>
        <script type="text/javascript" src="js/plugins/localisation/jquery.localisation-min.js"></script>
        <script type="text/javascript" src="js/plugins/tmpl/jquery.tmpl.1.1.1.js"></script>
        <script type="text/javascript" src="js/plugins/blockUI/jquery.blockUI.js"></script>
        <script type="text/javascript" src="js/ui.multiselect.js"></script>
    
        <script type="text/javascript">
            $(function () {
                // remote
                $("#languages").multiselect({
    
                });
    
            });
        </script>
    
    
    
    
         <form target="submitFrame" runat="server">
    <div>
           <dl>
               <dd>
              <select id="languages" class="multiselect" runat="server" name="languages[]">
               </select>
              </dd>
           </dl>
    </div>
    <div class="optionWrapper">
      <div class="optionInput">
        <input id="ec_checkValues" type="button" class="button" value="Assign Employees" />
         Selected Employees:
           <input id="hdn" type="text" />
       </div>
    

    .cs Page:

     protected void Page_Load(object sender, EventArgs e)
        {
            languages.Attributes.Add("multiple", "multiple");
            DataTable dt = obj.GetDataStoreInTable("Select top 10 intslno, nvrempname from tblHRIMS_employeedetail");
            languages.DataSource = dt;
            languages.DataTextField = "nvrempname";
            languages.DataValueField = "intslno";
            languages.DataBind();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an .aspx page with a databound multi-select jquery dropdown. This works nicley
So I have a MultiSelect box with x values which I need the ability
Using jQuery Multiselect plugin and need to check if any selections have been made
I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody
I have jQuery to select all font elements that are children of the element
I have jquery with class= modal i want to call that class when page
have an array of values [1,2,4] representing the values of a multi-select box, how
I have a had a couple of instances that jQuery.Multiselect will not render correctly
I have a multi-select drop down as following, where I have selected the options
I have a problem with the multi-select box. I tried to select multiple values

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.