Using CSS and the following example, is there a way to select only <p>
's that are followed by <ul>
's?
If not, what is the jQuery selector, or would it require an if
statement?
<p>Hello there.</p>
<p>Select this para!</p>
<ul>
<li>list item</li>
</ul>
<ul>
<li>don't select this list! :)</li>
</ul>
<p>And don't select this paragraph! :)</p>