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

Properly dealing with custom 404 pages

php .htaccess http-status-code-404

I have 3 files: index.php,.htaccess,404.shtml

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.