Show div one by one on click button using jquery

Show div one by one on click button using jquery

$(document).ready(function(){
  var limit = 1;
  $("div").slice(0, limit).show();
  $("button").on("click", (function(e) {
    limit += 1;
    e.preventDefault();
    $("div").slice(0, limit).css('display', 'flex');
  }));
});
Freelance Website Designer and Developer

Hire Our Website
Designer and Developer

Recent Solutions

Freelance Website Designer and Developer
Indoc Web Design

Copyright © 2024 All rights reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram