I have the document, for example:
This is the first line
<br>
This is the second line
<br>
This is the third line
Now I want to remove the <br> and format the text like below,
<DIV ID=PAGINATION-CONTENT>
This is the first line
</DIV>
<DIV ID=PAGINATION-CONTENT>
This is the second line
</DIV>
<DIV ID=PAGINATION-CONTENT>
This is the third line
</DIV>
How it can be possible by using jquery?
Something like this? I have used
classesas IDs must be unique!DEMO