My issue is: I have a html string, that is also on web page.
Now I want that this html string should work as selector for jQuery.
Here is the doc html
<body>
<p>asdf</p>
<p>ghjk</p>
</body>
Now we have a string
'<p><asdf</p>'
now
$('<p><asdf</p>').css("border",'1px solid red')
should read that paragraph border on document.
Any help will be appreciated!
fidlle:http://jsfiddle.net/eJxDb/2/
$('p:contains(asdf)').css("border",'1px solid red')