Skip to content

Arifshariar7/twbs-pagination

7be17cccde
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

1) bind -> changed to on() - jquery best practice
2) var that; var base; var thiz all context varible single code style: _this
3) code style improvements for variables
4) return have extra line before
5) jquery objects have $ in variable name
6) preventDefault shorthand for jquery. $this.on('click', false);
7be17cc

Git stats

Files

Permalink
Failed to load latest commit information.

jQuery pagination plugin (bootstrap powered)

Basic usage

Plugin requires jQuery (required - 1.7.0 or higher).

You can use Bootstrap CSS styles and markup (or use your own).

The following code shows call the function on <ul> tag (it can be also <div> tag).

$('#pagination-demo').twbsPagination({
  totalPages: 35,
  visiblePages: 7,
  onPageClick: function (event, page) {
    $('#page-content').text('Page ' + page);
  }
});

For more information see docs on github pages

About

jQuery pagination plugin (bootstrap powered)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.6%
  • HTML 2.4%