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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:48:10+00:00 2026-05-23T01:48:10+00:00

$.get(‘example.com’,function(data){ link = $(data #someid).attr(href) // how to do this??? }) I load a

  • 0
$.get('example.com',function(data){
link = $(data #someid).attr("href") // how to do this???
})

I load a page from other web (ex: $.get) and pass it to data, now how to use .attr() or Selectors on the data (sorry for my english problem)

  • 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-23T01:48:11+00:00Added an answer on May 23, 2026 at 1:48 am

    I dont know what is the content of the data, but if it is valid HTML, you could do it as this

    $.get('example.com',function(data){
    link = $("#test",$(data)).attr("href") // this is how you should do it
    });
    

    Imagine data HTML is

    <a id="test" href="http://test.com">This is a link</a>
    

    Hope helps
    🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$.get(http://localhost/test.php, (function(data){ alert(data); })) The alert is empty. I'm new to this, and I
We get a large amount of data from our clients in pdf files in
I get an error message from Firefox Unresponsive script. This error is due to
I get this error from my script: [Fri Apr 23 10:57:42 2010] [error] [client
Get the following error periodically in an IIS application: Failed to load resources from
I get this error: Cannot refer to an instance member of a class from
get this from my database: 252.587254564 Well i wanna remove the .587254564 and keep
I get this response from an Ajax request. Javascript seems to intepret it as
We get data from one of our partners that is running an i5 AS/400
I get a URL from a user. I need to know: a) is 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.