Let\'s suppose I have
var testHTML = \"\";
I want to get above div as JQuery object
You could use the .search() function of the javascript itself.
testHTML.search('demo_div')>-1