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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:47:06+00:00 2026-06-14T05:47:06+00:00

below is my html looks like and the problem with my page is that,

  • 0

below is my html looks like and the problem with my page is that, i have duplicate class names so for an example in my page i have class="inner" mulitple times in the same page.

My questions is: how can i grab the the text which says Get this text using cssSelector ?

<div class="tools-col-right">
       <div class="subcr">
       <div .....</div>
       <div .....</div>
       <div .....</div>
       <div class="main-inner">
       <div class="inner"> 
            <div class="t"></div>
            <h3> additional information</h3>
        <div class="subcolumns">
        <div class="subject">
            <ul>
             <li>....</li> 
             <li>....</li>
             <li>....</li>
             <li>....</li>
            </ul>
       </div>
     </div>
     </div>
     </div>

I am trying to get the text of div class='subject'

tried something like this: div[class='tools-col-right .subject']
but does not work.

  • 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-14T05:47:07+00:00Added an answer on June 14, 2026 at 5:47 am

    There are countless ways. Which might work depends on your whole page markup (you only gave an extract of your page, with no other .inner elements).

    #ctl00_ctl00_ContentControl3_phContent .inner {…}
    
    .about .inner {…}
    
    .main-inner .inner {…}
    
    #top-container .inner {…}
    

    EDIT after your updated code:

    Now you only have one element with the class subject. Again, without your whole markup (containing the other elements with the same class), it’s not possible to give you a safe answer. With your example, each of the following selectors should work:

    .subject {…}
    .subcolumns .subject {…}
    .inner .subject {…}
    .main-inner .subject {…}
    .subcr .subject {…}
    .tools-col-right .subject {…}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my problem: I have an HTML table that looks like this: What I
My page contains an image like in example below. Width of the image depends
I have two websites, let's say they're example.com and anotherexample.net . On anotherexample.net/page.html ,
Conside below html - <div class=container1> <div class=container2> <div class=container3> <div class=container4> <div class=element>
I have below html code in my aspx. <input type=hidden id=medicalLink value='<a href=/forms/contactus.aspx >Contact
I have below html code in one of the opensource project. <form action=/wiki/bin/view/Main/Search> <div
I'd like to retrieve the image source within the below HTML code block, but
The HTML below will show a page with 2 buttons. One will open a
In the HTML below, the layout works when the actionBar class has a float
Super newbie at Javascript here. I have a problem with whitespace that I'm hoping

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.