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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:20:45+00:00 2026-06-02T23:20:45+00:00

Observe: <span class=description> Not This person? <a href=http://www.example.com target=_self>Click Here</ > </span> I want

  • 0

Observe:

<span class="description">

Not This person?
<a href="http://www.example.com" target="_self">Click Here</ >

</span>

I want to edit the “Not this person” part of the “description” class and also the “click here” part without touching the anchor tag “href” attribute.

Is this possible with jQuery?

Sorry for being so terrible at explaining guys, here is a MUCH better explanation:

Ok, so this bit of HTML is written in a layout template in Pardot, which will generate the contents within the span of “description”. That will include the anchor and its text “click here”. In the editor, the HTML looks like this:

<span class="description">

%%description%%

</span>

In the BROWSER it will generate the following:

<span class="description">

Not This person?
<a href="http://www.example.com" target="_self">Click Here</a >

</span>

I would like to edit the “Not this person” and “click here” elements with jQuery! Sorry for not being clear enough earlier!

  • 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-06-02T23:20:46+00:00Added an answer on June 2, 2026 at 11:20 pm

    demo jsBin

       var $temp = $('.description').find('a').text('LINK').remove(); // edit, remove and store in a 'variable'
       $('.description').text('I am this person! ').append($temp); // attach
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

document.observe('click', function(e, el) { if (e.target != Element.descendantOf('calendar')) { $('calendar').fade(); } }); I am
Observe this fiddle: http://jsfiddle.net/pixelfreak/AN5Wb/ Everything is fine until you try to scroll by clicking
Observe the following code trait Example { type O def apply(o: O) def f(o:
I observe unmanaged.dll files having a unmanaged.dll.manifest file tagging along. On opening this files
Observe this perfectly simple UIViewController subclass method: -(IBAction)launchSearch { OffersSearchController *search = [[OffersSearchController alloc]
Same as this question, but Prototype library specific: I've got a Browser class, and
I'm trying to observe an int property (totalSeconds) in a class (StopWatch) where total
Im having an issue with using prototypes observe function and gaining access to this
Observe that the jQuery UI CSS does not pass validation. I try to adhere
Observe the following .NET type: public class X { public DateTime Timestamp {get;set;} public

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.