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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:17:45+00:00 2026-05-16T21:17:45+00:00

If I have the following var url = this.data; $.get(url, {}, function(data){ alert(data); });

  • 0

If I have the following

var url = this.data;
$.get(url, {}, function(data){
    alert(data);


});

I’m successfully able to iterate through and alert the following:

<a href="javascript:void(0)" id="arboretum-smith" class="bullet" rel="251-195">&nbsp;</a> 
    <div class="popup" id="arboretum-smith-box"> 
        <h3>Title 1</h3> 
        <div class="popupcontent"> 
            <p>Description text to go here.</p> 
        </div>
        <a class="close" href="javascript:void(0)">Close</a> 
    </div> 

<a href="javascript:void(0)" id="old-well" class="bullet" rel="251-245">&nbsp;</a> 
    <div class="popup" id="old-well-box"> 
        <h3>Title 2</h3> 
        <div class="popupcontent"> 
            <p>Description text to go here.</p> 
        </div>
        <a class="close" href="javascript:void(0)">Close</a> 
    </div> 

<a href="javascript:void(0)" id="bell-tower" class="bullet" rel="100-100">&nbsp;</a> 
    <div class="popup" id="bell-tower-box"> 
        <h3>Title 3</h3> 
        <div class="popupcontent"> 
            <p>Description text to go here.</p> 
        </div>
        <a class="close" href="javascript:void(0)">Close</a> 
    </div>

However what I want to do is get the text between the <h3></h3>'s Eg. Title 1, Title 2 etc. What is the best way to go about this?

  • 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-16T21:17:46+00:00Added an answer on May 16, 2026 at 9:17 pm

    If you want the string "Title 1Title 2Title 3",

    $(data).find('h3').text()
    

    if you want the array(-like object) ["Title 1", "Title 2", "Title 3"],

    $(data).find('h3').map(function(){return $(this).text();})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to handle a JSONP Callback, I have the following JavaScript var URL
I have the following js code: var ret; $.ajax({ type: 'GET', url: '/Pay/Build64/', dataType:
I have a Javascript function called sendData . var sendData = function (data) {
I have the following code: // auto_suggest.js function AutoSuggest(textboxElem, resultElem, url) { this.textboxElem =
I have the following code: var src, flickrImages = []; $.ajax({ type: GET, url:
I have following code: var params = { cache:false, dataType:json, type:GET, url: /order.php, error:
I have the following code to make a jsonp call. var contacts; $.ajax({ url:
I have the following: var doHandler = function (link, form, close) { var $form
In javascript I have the following: var inf = id + '|' + city
I have the following function: getTasks: function() { var taskRequest = Titanium.Network.createHTTPClient(); var api_url

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.