jQuery Mobile in the examples - <input type="checkbox">

<input type="checkbox">

<input type="checkbox">

<!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">
    <form>
      <label>
        <input type="checkbox" name="checkbox-0 ">Check me
      </label>
      <input type="checkbox" name="checkbox-mini-0" id="checkbox-mini-0" data-mini="true">
      <label for="checkbox-mini-0">I agree</label>
      <fieldset data-role="controlgroup">
        <legend>Vertical:</legend>
        <input type="checkbox" name="checkbox-v-2a" id="checkbox-v-2a">
        <label for="checkbox-v-2a">One</label>
        <input type="checkbox" name="checkbox-v-2b" id="checkbox-v-2b">
        <label for="checkbox-v-2b">Two</label>
    </fieldset>
    <fieldset data-role="controlgroup" data-type="horizontal">
        <legend>Horizontal:</legend>
        <input type="checkbox" name="checkbox-h-2a" id="checkbox-h-2a">
        <label for="checkbox-h-2a">One</label>
        <input type="checkbox" name="checkbox-h-2b" id="checkbox-h-2b">
        <label for="checkbox-h-2b">Two</label>
    </fieldset>
    <fieldset data-role="controlgroup" data-iconpos="right">
        <legend>Icon right:</legend>
        <input type="checkbox" name="checkbox-h-6a" id="checkbox-h-6a">
        <label for="checkbox-h-6a">One</label>
        <input type="checkbox" name="checkbox-h-6b" id="checkbox-h-6b">
        <label for="checkbox-h-6b">Two</label>
    </fieldset>
    </form>
  </div>
  <div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>
Pobierz kod