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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:31:25+00:00 2026-05-30T13:31:25+00:00

my html code: <select class=b_selectbox> <option value=0>Status</option> </select> <select class=b_selectbox> <option value=0>Type</option> </select> <select

  • 0

my html code:

        <select class="b_selectbox">
            <option value="0">Status</option>
        </select>

        <select class="b_selectbox">
            <option value="0">Type</option>
        </select>

        <select class="b_selectbox">
            <option value="0">Category</option>
        </select>

That’s working for first element:

$(".b_selectbox option:first").text();

I am trying to get text “Type”, here is what i tried so far:

 $(".b_selectbox option:first").text()[1]; // result: "t" probably second letter from "Status"

$(".b_selectbox option:first")[1].text(); // not working either

Is there a solution without using each and id names ?

  • 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-30T13:31:26+00:00Added an answer on May 30, 2026 at 1:31 pm

    Either

    $('.b_selectbox option').eq(1).text();
    

    if each select element has only one option (makes a select unnecessary?), or if you want to get the second of all options, or

    $('.b_selectbox').eq(1).children('option').first().text();
    

    if you want the text of the first option of the second select element.

    For more information, see .eq() [docs].

    • 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 in html: <select> <option text=item9 value=9></option> <option text=item10 value=10></option>
Here is my HTML Code. <table> <tr> <td> <select class=dropdown> <option value=>Select answer</option> <option
I have the following code in a view: <div class=wrap_select> @Html.DropDownList(dateRange, new SelectList(Model.DateRange, Value,Text),
I have this HTML code which simulates a dropdown multi-checkbox <div> <div class=select> <span>Select
Let's say I have the following in my HTML code: <select name=Currency id=Currency> <option
Below are the options that I have in my HTML code: <label id="subn"> <select
The below HTML/CSS/Javascript (jQuery) code displays the #makes select box. Selecting an option displays
I've got an HTML select element which I'm updating dynamically with code something like
I am creating a chunk of HTML/JavaScript with the below code: $result = mysql_query(SELECT
I have the following line of code. <%= Html.Encode(string.Join(, , item.company1.companies.Select(x => x.company_name).ToArray())) %>

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.