Set data-icon for anchor

Description

The following code shows how to set data-icon for anchor.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type="text/javascript"
  src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css">
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css">
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
</head><!--from  w ww .  j a v  a 2s  . c  om-->
<body>
  <div data-role="page">
    <div data-role="header">
      <div class="title">
        <h2>Howard Consulting and Investments</h2>
      </div>
    </div>
    <div data-role="content">
      <a href="#home" data-role="button" data-icon="arrow-r">Home</a> 
      <a href="#project" data-role="button" data-icon="arrow-r" data-theme="a">Projects</a> 
      <a href="#event" data-role="button">Events</a>
      <a href="#oppertnity" data-role="button">Oppertunities</a> 
      <a href="#contact" data-role="button">Contact Us</a>
    </div>
  </div>
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme