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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:33:58+00:00 2026-05-28T04:33:58+00:00

Hi I am starting to use jQuery and when I try to select the

  • 0

Hi I am starting to use jQuery and when I try to select the content inside a div, some emails don’t get selected? I’m using Safari’s console to execute the jQuery code. I get the desired result with .text() but why doesn’t .html() work?

jQuery

$("input[type=checkbox]:checked").parents('.organizer_listing').find('.organizer_listing_contact_email')

Result

[
<div class=​"organizer_listing_contact_email">​ciara@bhre.net​</div>​
, 
<div class=​"organizer_listing_contact_email">hihi-p38sn-2788580457@somewhere.org​</div>​
, 
<div class=​"organizer_listing_contact_email">hihi-2xxtn-2783323299@someowhere.org​</div>​
]

jQuery

$("input[type=checkbox]:checked").parents('.organizer_listing').find('.organizer_listing_contact_email').html()

Result

"ciara@bhre.net"
  • 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-28T04:33:59+00:00Added an answer on May 28, 2026 at 4:33 am

    The accessor methods (most of which can be mutators too, but anyway) will only work on the first item in the result set.

    That is, .html() will give you the html of the first item in the set, just as .attr('href') will give you the first item’s href attribute.

    Instead, you might want to use .map

    ...find('.organizer_listing_contact_email').map(function () {
        return $(this).html();
    }).get();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am starting to use the jquery $.ajax() but I can't get back what
I'm starting a new ASP.NET project that I'm trying to use some jQuery with,
I am starting a new project using WCF so that I can use jQuery
I'm just starting to use the Twitter API to retrieve data using jQuery. I've
I'm just starting to use jQuery and I'm having some trouble with something I
We are starting to using Test Driven Development on a project. We use jQuery,
I am starting to use some Java code which was written by someone else.
I'm starting to use more and more jquery. I'm working with dialogs, and each
How to create similar drag and select chart, or which Jquery plugin to use
I'm just starting to use JQuery, and I'm editing the modal popup example within

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.