JavaScript pagination
I have html code inside of which is <div class="post">. I want to break them into javascript. How can i do this? (I know I can do it using PHP, but I just want to do it using JS)
The html generated by my php looks like this:
<body>
<div id="content">
<div class="post">
post content
</div>
<div class="post">
</div>
...
</div>
</body>
Maybe it is better to use jquery for this? (I use jquery ajax to load html into allready content)
+3
4 answers