I have a jquery function that changes a text inside a element using a jquery \"text\" function. Inside this td element is child \"a\" tag like this.
If you have: Then in your function you should have something like this: However, this will select all links that are direct children of
text to change
$("td.v3").children("a").text("new text");
td
s with class .v3
. Adding a .first()
after children should help:$("td.v3").children("a").first().text("new text");