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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:46:03+00:00 2026-05-13T23:46:03+00:00

Say I had the following HTML: <h2>Heading <span></span></h2> <ul> <li><a href=# title=I am wanting

  • 0

Say I had the following HTML:

<h2>Heading <span></span></h2>

<ul>
<li><a href="#" title="I am wanting to be in H2!">Something</a></li>
<li><a href="#" title="I too am wanting to be in H2!">Something else</a></li>
</ul>

I want to be able to take the title tag from the and place it inside the span of the h2. How can I do so?

Cheers.

  • 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-13T23:46:03+00:00Added an answer on May 13, 2026 at 11:46 pm
    $('a').click(function(){
       $('h2 span').html( $(this).attr('title') );
       return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So lets say I had a string that was <html> <head><title>301 Moved Permanently</title><head> and
Say you had the following two constructors: - (id)initWithTitle:(NSString *)title; - (id)initWithTitle:(NSString *)title page:(NSString
I had the following idea: Say we have a webapp written using django which
Say for example you had a shell script that utilises inotifywait in the following
Been having lot's of trouble with this one. Let's say I had the following
Say I had the following: <select disabled=disabled style=border: 1px red solid; color: black;> <option>ABC</option>
Say I had some data, for which I want to fit a parametrized model
Say I had the following values { Great, Good, Ok, Poor, Sucks } I
Say I had the following markup: <div></div> <div></div> <div></div> And I use the following
Let's say I had the following table: id | name | points ------------------- 1

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.