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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:54:54+00:00 2026-05-14T02:54:54+00:00

I have jQuery to select all font elements that are children of the element

  • 0

I have jQuery to select all font elements that are children of the element with id="right" within the html stored in the var html… when I do an alert to see how many elements it gets:

alert($("#right > font", html).length);

it gives me an alert of: 5

but when I try any of the following, I don’t get any alerts…

alert($("#right > font", html)[0].html());
alert($("#right > font", html)[0].text());
alert($("#right > font", html)[0].val());

Any Ideas?

Thanks,
Matt

  • 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-14T02:54:54+00:00Added an answer on May 14, 2026 at 2:54 am

    Since the element is not an instance of jQuery, and its just a DOM object you can’t use any of the jQuery methods. You can use innerHTML to get the result.

    alert($("#right > font", html)[0].innerHTML);
    

    If you want to apply any of the jQuery methods to the element you have to make it a jquery object like

    alert($($("#right > font", html)[0]).html());
    

    or

    $("#right > font").each(function(){
        alert($(this).html());
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery, I need to select all elements that do not have a background
Select elements that i have previously set with jquery.data(); i.e. Select all elements with
I have this jQuery script that works fine: $(select).change(function () { var finalPrice =
I want to select all the select elements that have a value of -1
How can I select all elements that have a specific CSS property applied, using
Hi I am trying to use jQuery to select all elements which have the
is there a way in jQuery to select elements that have a certain value
is there a way in jQuery to select elements that have a certain value
How can I use jQuery to select all p tags that have at least
I have a select-all jquery script I got from a site (I forgot the

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.