Skip to content

nttps/js-loadmore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js Function Button Load more..

StyleCI

JS Button Load more

Including files:

<script src="../dist/btnloadmore.min.js"></script>

How to use

You need to do is call the plugin inside a $(document).ready function:

<div class="contents">
    <div> 1 </div>
    <div> 2 </div>
    <div> 3 </div>
    <div> 4 </div>
    <div> 5 </div>
    <div> 6 </div>
    <div> 7 </div>
    <div> 8 </div>
    <div> 9 </div>
</div>
$(document).ready(function(){
    $('.contents').btnLoadmore();
});

Options

$('.contents').btnLoadmore({
    showItem : 2,
    whenClickBtn : 1,
    textBtn : 'Load more ...'
});

Method

  • showItem : set number for show element.
  • whenClickBtn : set number for show element when click button.
  • textBtn : set text on click button.
  • classBtn : set custom class button .

About

jQuery button click load more elements

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages