That ended up taking the text from all the $("a[href*='documents/']")
links and concatinating into a single link, for some reason; with the
underscores still in place(?)

On Mar 12, 10:50 pm, James <james.gp....@gmail.com> wrote:
> Do you mean:
> $("a[href*='documents/']").text();
>
> So:
> var $link = $("a[href*='documents/']");
> $link.text( $link.text().replace("_", " ") );
>
> <a href="...">My_Link</a>
>
> becomes:
> <a href="...">My Link</a>
>
> On Mar 12, 3:48 pm, jhead <jmhea...@gmail.com> wrote:
>
> > I've experimented afairamountovertime, and nothing seems to really
> > work.
>
> > I am trying to replace the underline character _ from all links text
> > that have "documents/" as part of the href, with a space;
> > not from the href, just the link text.
> > e.g. $("a[href*='documents/']").val().replace("_", " ");
>
> > I know $("a[href*='documents/']").css("color","red"); works, so
> > perhaps it's not that far off.
>
> > Any idea what I'm missing?
>
> > Thanks

Reply via email to