jQuery Mobile

Demos

Menu Search

Buttons

Add classes to style a and button elements. input buttons are enhanced by the button widget. See this page for examples.

Note that in 1.4 data- attributes will still work. The deprecated buttonMarkup method will add the applicable classes to a and button.

Basic markup

Anchor

Corners

Anchor

Icon-only buttons are round by default. Here we show how you can set the same border-radius as other buttons.

No text

Shadow

Anchor

Inline

Anchor

Theme

Anchor - Inherit Anchor - Theme swatch A Anchor - Theme swatch B

Mini

Anchor

Icons

Anchor

Icon position

Left Right Top Bottom Icon only

Inline:

Left Right Top Bottom Icon only

Icon shadow

Anchor

Theme B:

Disabled

Disabled anchor via class

Native button

In 1.4 button will still be auto-enhanced. This example shows how you can prevent this.