i\'ve got this:
-
Use :contains filter selector:
$('p.hidden:contains("click here")')
To wrap it in link:
$('p.hidden:contains("click here")').html()
.replace('click here', 'click here');
To wrap whole text in link:
$('p.hidden:contains("click here")')
.html('' + $('p.hidden:contains("click here")').text() + '');
More Info:
- http://api.jquery.com/contains-selector/