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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:37:15+00:00 2026-06-03T04:37:15+00:00

I have the following codes for a select menu: <label for=select-choice-0 class=select>Shipping method:</label> <select

  • 0

I have the following codes for a select menu:

<label for="select-choice-0" class="select">Shipping method:</label>
<select name="select-choice-0" id="select-choice-1">
   <option value="standard">Standard: 7 day</option>
   <option value="rush" >Rush: 3 days</option>
   <option value="express">Express: next day</option>
   <option value="overnight">Overnight</option>
</select>

Doing $(‘select-choice-1’).val() will give me the value of the selected option, for eg, if the second option has been selected, then, the value returned would be “rush”.

However I want to get the string “Rush: 3 days” instead. How can I do that?

Thanks.

  • 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-03T04:37:17+00:00Added an answer on June 3, 2026 at 4:37 am

    Found the following works:

    document.getElementById('select-choice-1').options[document.getElementById('select-choice-1').options.selectedIndex].text;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code <select id=practice_id name=practice column=practice style=width: 200px> <option value=>Default</option> <option
I have a DropDownList on a page <select name=Pages1$RadPanelBar1$i0$i0$ddlParentPage id=Pages1_RadPanelBar1_i0_i0_ddlParentPage tabindex=2> <option value=0>[main menu]</option>
I have the following code in html: <select> <option text=item9 value=9></option> <option text=item10 value=10></option>
Suppose I have a drop down menu: <select id=color> <option value=white selected=selected>White</option> <option value=black>Black</option>
I have the following mySQL code: SELECT c.categoryId, c.categoryName, c.categoryParent, c.categoryDescription, COUNT(p.productid) as totalProdsInCategory
I have following code return (EseshEntities.Current.Users.Select(u => new { Comunity = u.Apartment.Building.District.City })).ToList(); if
I have following code.. $query = SELECT quote, author FROM quotes ORDER BY id
I Have following code with LINQ var q = (from web in DataContext.Webs select
I have the following code that prompts the user to select a range of
I have the following code: if ($user) { $highscore = mysql_result(mysql_query(SELECT Score FROM HighScore

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.