jQuery Mobile Icons

## jQ Mobile Tutorial

jQ Mobile HOME jQ Mobile Intro jQ Mobile Install jQ Mobile Pages jQ Mobile Transitions jQ Mobile Buttons jQ Mobile Icons jQ Mobile Toolbars jQ Mobile Navbars jQ Mobile Collapsibles jQ Mobile Grids

## jQ Mobile Lists

jQ Mobile List Views jQ Mobile List Content

## jQ Mobile Forms

jQ Mobile Form Basic jQ Mobile Form Inputs jQ Mobile Form Select jQ Mobile Form Sliders

## jQ Mobile Themes

jQ Mobile Themes

## jQ Mobile Events

jQ Mobile Events jQ Mobile Touch jQ Mobile Scroll jQ Mobile Orientation jQ Mobile Page Events

## Examples

jQ Mobile Examples

## References

jQ Data Attributes jQ Events jQ Icons

# jQuery Mobile Icons

« Previous
Next Chapter »

## jQuery Icons

To add an icon to your button in jQuery Mobile, use the data-icon attribute:

<a href="#anylink" data-role="button" data-icon="refresh">Refresh Page</a>

Tip: You can also use the data-icon attribute in <button> or <input> elements.

Below we have listed all available icons that jQuery Mobile provides:

Attribute Value | Description | Icon | Example
--- | --- | --- | ---
data-icon="arrow-l" | Left Arrow |  | Try it
data-icon="arrow-r" | Right Arrow |  | Try it
data-icon="arrow-u" | Up Arrow |  | Try it
data-icon="arrow-d" | Down Arrow |  | Try it
data-icon="plus" | Plus |  | Try it
data-icon="minus" | Minus |  | Try it
data-icon="delete" | Delete |  | Try it
data-icon="check" | Check |  | Try it
data-icon="home" | Home |  | Try it
data-icon="info" | Information |  | Try it
data-icon="grid" | Grid |  | Try it
data-icon="gear" | Gear |  | Try it
data-icon="search" | Search |  | Try it
data-icon="back" | Back |  | Try it
data-icon="forward" | Forward |  | Try it
data-icon="refresh" | Refresh |  | Try it
data-icon="star" | Star |  | Try it
data-icon="alert" | Alert |  | Try it

« Previous
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE