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!
demo jsBin