Jas
05-21-2008, 03:06 PM
First of all, AHHHHHH! Okay, now that that is out of the way, lets continue.
I need to know how to create a JavaScript that will find out what and where the tag/tags is/are that contain the text "$body". For example:
<html>
<head>
</head>
<body>
<div>Hello</div>
<div>$body</div>
<table>
<tr>
<td>Hi!</td>
<td>Hello!</td>
<td>$body</td>
</tr>
</table>
</body>
</html>
The JavaScript would need to return a reference for the second div and the third td so that they can be manipulated.
Does all of that make sense?
I am not looking for actual code so much as direction (but if you feel compelled to write the script, I won't turn you down :)). I am pretty competent at writing in JavaScript, but I've never done this before.
I need to know how to create a JavaScript that will find out what and where the tag/tags is/are that contain the text "$body". For example:
<html>
<head>
</head>
<body>
<div>Hello</div>
<div>$body</div>
<table>
<tr>
<td>Hi!</td>
<td>Hello!</td>
<td>$body</td>
</tr>
</table>
</body>
</html>
The JavaScript would need to return a reference for the second div and the third td so that they can be manipulated.
Does all of that make sense?
I am not looking for actual code so much as direction (but if you feel compelled to write the script, I won't turn you down :)). I am pretty competent at writing in JavaScript, but I've never done this before.