6
I have the following extrusion and want to limit the amount of "class/posts" to be displayed. I want to create a button so that, when clicking, it displays and goes showing more and more "class/posts". I only found tutorials that explain how to do this by searching the data in mysql and what I need does not need any data from the database because I already own the content on the page one page. The code is this:
<!DOCTYPE html>
<html>
<head>
<title>Carregamento</title>
</head>
<body>
<div class="posts">
<div class="postagens">
<h1>titulo postagem</h1>
<p>conteúdo postagem</p>
</div>
<div class="postagens">
<h1>titulo postagem 2</h1>
<p>conteúdo postagem</p>
</div>
<div class="postagens">
<h1>titulo postagem 3</h1>
<p>conteúdo postagem</p>
</div>
<div class="postagens">
<h1>titulo postagem 4</h1>
<p>conteúdo postagem</p>
</div>
<div class="postagens">
<h1>titulo postagem 5</h1>
<p>conteúdo postagem</p>
</div>
<div class="postagens">
<h1>titulo postagem 6</h1>
<p>conteúdo postagem</p>
</div>
<div class="postagens">
<h1>titulo postagem 7</h1>
<p>conteúdo postagem</p>
</div>
</div>
</body>
</html>
I want to limit the posts to just two and as I click on a "see more" button, it will add more data in the view.
Dude didn’t know this jQuery dial, top.
– LeAndrade
Very useful in some cases :)
– Sam