I'm working with some HTML content inside <div id="content-text">
which (unfortunately) doesn't have any ids or classes in it's sub elements. Like...
<div id="content-text">
<p>
<ol>
<li>first thing</li>
<li>second thing</li>
</ol>
</p>
etc......
</div>
I need to be able to select the HTML from elements like "the 3rd <p>
tag" or "the 5th <li>
tag" within the <div id="content-text">
using jQuery. I've tried things like $("#content-text").children("p:eq(5)").eq(4).html();
, but I keep getting a result of null.
Any help is appreciated. Thanks!
` of a `
` is selected. Thoughts?