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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:03:29+00:00 2026-06-17T07:03:29+00:00

I need to extract data from such code: <div class=rateCalc_InfoLine2> <span style=font-size:12px;> Text1 –

  • 0

I need to extract data from such code:

<div class="rateCalc_InfoLine2">
    <span style="font-size:12px;">
        Text1 - <b><font color="red" size="2">$ 500</font></b>;
        Text2 - <b><font color="red">$ 30</font></b>
    </span>
</div>

So basically, I need to find the value 30 that is inside the 2nd font tag of the span tag that is inside div tag with the class rateCalc_InfoLine2. The structure is static, so I dont need to worry about mistakes ( only the value 30 will change )

I know hoe to get the value of the div like this:

$(".rateCalc_InfoLine2").html();

but how to get the specific one I need?


Answer: $(".rateCalc_InfoLine2 font").eq(1).html().replace('$ ', '');

  • 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-17T07:03:29+00:00Added an answer on June 17, 2026 at 7:03 am

    You can first find the font elements within div using descendant selector and then use index to find the second element using eq().

    Live Demo

    $(".rateCalc_InfoLine2 font").eq(1).html();
    

    Edit to remove the $

    strResult = $(".rateCalc_InfoLine2 font").eq(1).html().replace('$ ', '');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to extract data from a structure and put it into a list,
I need to extract data from a source that presents it in one of
I need to extract data from HTML-files. The files in question are, most likely,
I have a pgp-encrypted file that I need to extract data from at runtime.
I need to extract name from a big data pouch . $frame = '\Amy
I need a fast way to extract data from json responses a I get
I'm writing some quick code to try and extract data from an mp3 file
I have two databases with equivalent structure and I need to extract data from
I need to extract some static data from PHP files in ruby. I've looked
I have a table that I need to extract data from, and wish to

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.