Friday, 6 September 2013

Dynamic detection of content

Dynamic detection of content

I have html that generates <div> codes like this
<div>
<div>
<div id ="title"> This is my Title</div>
</div>
<div id ="description"> This is Description</div>
</div>
and I need to get the content of those div sometimes the div id change or
sometimes give no id. My question is how can I get the value or the
content of that div if the div's id changes every time I load the page or
is there any way or idea on how can I achieve it and I need to know if
that div contains description or title? I think it's hard to implement.

No comments:

Post a Comment