find a specific piece of text after a specific a tag with jquery

given the following setup:

<a href="foo">Subject</a> &gt; 
<a href=bar">Negotiation</a>, 

1) Is it possible to select the "&gt"; that is located to the right of this a tag with jquery? I do not want to select all "&gt"; on the page I am trying to find specific ones.

I tried .next() and .text() with jquery with no success.

I do not have access to the code as it is dynamically created from the backend which I have no access to so I need to do this with a document.ready

Answers


This would get the &gt; -

$("a[href='foo']").get(0).nextSibling.nodeValue

Demo - http://jsfiddle.net/hugwm/


Need Your Help

how to create a RTSP streaming server

rtsp

So I am trying to create a RTSP server that streams music.

Why can't I use a bit field as a boolean expression in a SQL case statement?

sql design boolean case bit

I want to select something conditionally based on whether a bit field is true or false. This was the syntax that I originally tried:

need a random word generator using a dictionary

objective-c ios xcode ios5

I'm making a hangman game, so I need a random word generator. My goal is for the user to say how many letters they want in the word and to output a random word with that many letters. I would like ...