Load more data on button click using jQuery

You can use a single load more button on your webpage to paginate the list of records. This type of pagination is very common on the website or in mobile apps. The user needs to click on the load more button whenever the need to view more items. After the click, the data will append with the existing list items.

I'm a marketing manager with 10 years of experience in both web and traditional advertising, promotions, events, and campaigns. I have worked on integrated campaigns for major clients such as Etrade, Bank of America, Sony Music, and Microsoft and have been recognized with several awards during my career.
Until recently, I led marketing for XYZ Corp, a software developer focused on middleware for the video game industry In this role I was focused on B2B marketing, although I have done extensive B2C work in the past. Successes included creating a social media and online advertising campaign that generated enormous media buzz and was key to the successful launch of the Zwango software in 2010. Previous experience includes agency work with XYZ 8 Partners and Red Dog Marketing.
Content
Content
Content
Content
Content
Load More

HTML

<div class="nextContent">Content</div>
<div class="nextContent">Content</div>
<div class="nextContent">Content</div>
<div class="nextContent">Content</div>
<div class="nextContent">Content</div>
<div class="nextContent">Content</div>
<div class="nextContent">Content</div>

<a href="#" id="loadMore">Load More</a>

CSS

.nextContent {
  display:none;
  margin: 5px 0;
  padding: 8px 0;
  background: #eee;
  border: 1px solid #ccc;
  text-align: center;
}
#loadMore {
    padding: 10px;
    width: 100%;
    display: block;
    text-align: center;
    background-color: #33739E;
    color: #fff;
    border-width: 0 1px 1px 0;
    border-style: solid;
    border-color: #fff;
    box-shadow: 0 1px 1px #ccc;
    transition: all 600ms ease-in-out;
    -webkit-transition: all 600ms ease-in-out;
    -moz-transition: all 600ms ease-in-out;
    -o-transition: all 600ms ease-in-out;
    margin-top: 10px;
    margin-bottom: 10px;
}
#loadMore:hover {
    background-color: #eee;
    color: #33739E;
}

JavaScript

  $(function () {
      $(".nextContent").slice(0, 2).show();
      $("#loadMore").on('click', function (e) {
          e.preventDefault();
          $(".nextContent:hidden").slice(0, 2).slideDown();
          if ($(".nextContent:hidden").length == 0) {
              $("#load").fadeOut('slow');
              $('#loadmore').replaceWith("<p class='p'>No More</p>");
          }
          $('html,body').animate({
              scrollTop: $(this).offset().top
          }, 1500);
      });
  });

Load more data on button click using jQuery

You can customize this code further as per your requirement.