Form Buttons
Description
jQuery Mobile converts any button or input element into a mobile-styled button for you.
Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Buttons</title>
<meta name="viewport"
content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head><!-- w ww. ja v a 2 s .co m-->
<body>
<div data-role="page">
<div data-role="header">
<h1>Form Buttons</h1>
</div>
<div data-role="content">
<button data-theme="b">Button element</button>
<input type="button" value="Button input" data-theme="b" />
</div>
</div>
</body>
</html>
Note
To disable the automatic initialization of form buttons or any other control, you may add the data-role="none" attribute to the element and jQuery Mobile will not enhance the control:
<button data-role="none">Button element</button>