Is there a way to get code behind a content in jQuery, like <a href="http://www.example.com" class="link">Text</a>
So i need something like: if ($(".link").text() == "Text"){alert("<a href="http://www.example.com" class="link">Text</a>");}
The thing is that i need to get the text from alert();
from page, and maybe some code before.