Layout input and button

Description

The following code shows how to layout input and button.

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.3.0-beta.1/jquery.mobile-1.3.0-beta.1.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.css">
<style type='text/css'>
.ui-block-b {<!--from  w w w  . j  av a  2s .  c o  m-->
  width: 25% !important;
}

.ui-block-a {
  width: 75% !important;
  padding-top: 3px !important;
}
</style>
</head>
<body>
  <div class="ui-grid-a">
    <div class="ui-block-a">
      <input type="text" name="name" id="basic" value="" />
    </div>
    <div class="ui-block-b">
      <button type="reset" data-theme="b">Reset</button>
    </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