Forum Moderators: open
In javascript you just use innerHTML.indexOf , I tried
if($("#main").html().indexOf('Not Set')==-1) {}
but no joy
1. Is there a jquery method for this? I found 'contains' but it doesn't seem to work.
2. Is it possible to call the javascript version from inside a jquery function?
(Note that inside the div there are other divs that may contain the phrase. The main div id is 'main' and the child div ids are para1,para2,para3...)