Luv2Muff
asked on
Scan page and replace text
Hi,
Hoping someone can help with this.
First I want to look up the text contained in <meta name="keywords" content="FOO" />
Then I want to replace all instances in the page of the text "XXXX" with above.
So for example:
"This is the XXXX page text"
will become:
"This is the FOO page text"
Is this possible?
Hoping someone can help with this.
First I want to look up the text contained in <meta name="keywords" content="FOO" />
Then I want to replace all instances in the page of the text "XXXX" with above.
So for example:
"This is the XXXX page text"
will become:
"This is the FOO page text"
Is this possible?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
$(function(){
var keywords = $('meta[name=keywords]').a
$(document).ready(function
$('.replaceme').replaceWit
});
});
</script>
This is the <span class="replaceme">XXXX</sp