I have the following HTML elements:
<p>Content here</p>
<div class="pagebreak"></div>
Sometext
<span style="somestying"><strong>Title</strong></span>
...and many more content.
Using below JQuery code, I'm trying to select all nodes after the the node with class pagebreak
var findPagebreak = $(currentPagina[0]).find('.pagebreak');
var nextContent = $(findPagebreak).nextAll();
But the variable nextContent
only contains node:
<span style="somestying"><strong>Title</strong></span>
I would like to take select the text nodes and all html elements after the div with pagebreak
class.
Anyway I could do this?