I want to search specific string from div and find out whole(full) string
I.e :
<div id='MSO_ContentTable'>
[Rotator(Cat=Marketing,Top=5,AutoRotate=true)]
[Rotator(sg=dummy,Bottom=5,Autosb=true)]
blah blah blah .......
</div>
This div contains many data but I want to just find full string only using Rotator character in Div content.
$("div[id*='MSO_ContentTable']:contains('[Rotator')").each(function()
{
// find out div but not getting full string.
//.In div also contains another html some thing like
//<table>,<div> etc. i want to just find string which contain(Rotator)
});
You can so something like this (you might need to tweak that according to your actual content):
See this fiddle for a demo: http://jsfiddle.net/nnNcz/