If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

Finding a div that contains some text

Hello colleagues

I have a web page with a lot of divs in it. Some of them contain names such as Smith, Ms Ruth.
I would like the page to load then perform the following code to find the Id of the div in which Ms Smith might be in.
The following code works well in a much smaller page with only 3 divs in it but does not seem to work with the large html page.
I have consulted google till my hair falls out.
Any ideas ?