How do I select the next element that isn't of the same parent?
I have:
- <p>Click here</p>
- <div>cool content #1</div>
- <p>Click here</p>
- <div>cool content #2</div>
How if I click either <p> how do I select the <div> immediately following?
- $(p + div).dosomething()
isn't working.
Thoughts?