Skip to content
Switch branches/tags
This branch is 20 commits ahead of linab:master.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


An indexed scrollbar plugin using jQuery

AlphaScroll adds an alphabetized scrolling widget to lists with specific dividers. The widget addresses the difficulty of quickly scrolling large lists on small mobile device screens.

Try a demo that uses Bootstrap.

In the example, alphascroll appears only when width is less than 792px so that it does not overflow content.



AlphaScroll is for use on listviews that are alphabetically sorted and include dividers: data-role="list-divider".

AlphaScroll responds to orientation change events to display a shortened list of letters when in landscape mode or when the screen has a height of less than 326 pixels.


  • No jQuery Mobile requirement
  • Ability to separate list into wrappers - suitable for Bootstrap
  • If content exists in the list, clicking on alphabet navigation letter scrolls content
  • Clicking on non-existing content navigation link leads to previous letter's last item or very top of the page
  • Smooth content scrolling
  • Compatible with bootstrap


First, include the AlphaScroll CSS and JavaScript files in your HTML:

<link rel="stylesheet" type="text/css" href="css/jquery.alphascroll.css" />
<script type="text/javascript" src="js/jquery.alphascroll.js"></script>

Here's the example of html:

<div id="author-list">
    <li data-role="list-divider" role="heading" class="a">A</li>
    <li data-first-letter="a"><a href="#">Amelia Webster</a></li>
    <li data-first-letter="a"><a href="#">Andrew WifKinson</a></li>
    <li data-first-letter="a"><a href="#">Archibald Carrington</a></li>
    <li data-first-letter="a"><a href="#">Ariana Clapton</a></li>
    <li data-first-letter="a"><a href="#">Ashley Carter</a></li>
    <li data-role="list-divider" role="heading" class="b">B</li>
    <li data-first-letter="b"><a href="#">Brenda Brown</a></li>
    <li data-first-letter="b"><a href="#">Brooke Creighton</a></li>

So then you can initiate alphaScroll like that:



The AlphaScroll plugin in its current state doesn't take any options. You may alter the look and placement of the scroll widget by editing the CSS in jquery.alphascroll.css.


Testing on an iPhone 5, scrolling rapidly back and forth on the alphascroll widget can cause some screen flashing. This doesn't seem to happen on desktop browsers and is likely due to the slower processor speed of mobile devices.


An indexed scrollbar plugin without jQuery Mobile




No packages published