O'Reilly logo

jQuery and JavaScript Phrasebook by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing Split Button List

<ul data-role="listview">   <li><a href="#">Jeep</a><a href="#" data-icon="star">Like</a></li>   <li><a href="#">Ford</a><a href="#" data-icon="star">Like</a></li>   <li><a href="#">Chevy</a><a href="#" data-icon="star">Like</a></li> </ul>

Split-button lists are lists that include multiple options on each line. This can be useful in a variety of ways. When listing products for sale, the main part can link to more details and the secondary link can add the item to the cart. To create a split-button list, create two <a> elements in the <li> item.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required