jQuery Mobile w przykładach - <form><input> Przyciski formularza
<form><input type="button", "submit", "reset">
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed"><H1>Header</H1></div>
<div role="main" class="ui-content">
<input type="button" data-icon="delete" data-iconpos="top" value="Top">
<input type="button" data-icon="delete" data-iconpos="bottom" value="Bottom">
</form>
</div>
<div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>
Pobierz kod
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed"><H1>Header</H1></div>
<div role="main" class="ui-content">
<form>
<input type="button" value="Button">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
<input type="button" data-mini="true" value="Input mini">
<input type="button" data-icon="delete" data-iconpos="notext" value="Icon only">
<input type="button" data-inline="true" value="Input">
<input type="button" data-inline="true" value="Input">
<input type="button" data-icon="delete" value="Left (default)">
<input type="button" data-icon="delete" data-iconpos="right" value="Right"><input type="button" value="Button">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
<input type="button" data-mini="true" value="Input mini">
<input type="button" data-icon="delete" data-iconpos="notext" value="Icon only">
<input type="button" data-inline="true" value="Input">
<input type="button" data-inline="true" value="Input">
<input type="button" data-icon="delete" value="Left (default)">
<input type="button" data-icon="delete" data-iconpos="top" value="Top">
<input type="button" data-icon="delete" data-iconpos="bottom" value="Bottom">
</form>
</div>
<div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>