Tuesday, April 28, 2009

[jQuery] Get td string and replace

Hi,
I would like to select the text of this td and replace with another
string. How can that be accomplished?

<td jscontent="address" style="vertical-align: middle; width: 100%;"
jstcache="9">8050 Drexel Ct, Lemon Grove, CA 91945</td>

I tried with this without any success:

var vtd = $(".googledir tr td:contains('8050 Drexel Ct, Lemon Grove,
CA 91945')").html('8050 Blossom Lane, Lemon Grove, CA 91945');


Thanks

No comments:

Post a Comment