jQuery Mobile w przykładach - <form><input> Pole opcji

<form><input type="radio">

<!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="radio" name="radio-choice-0" id="radio-choice-0a">One
      </label>
      <label for="radio-choice-0b">Two</label>
      <input type="radio" name="radio-choice-0" id="radio-choice-0b" class="custom">
      <label for="r3">Two</label>
      <input type="radio" name="r3" id="r3" class="custom" data-mini="true">
      <fieldset data-role="controlgroup">
        <legend>Vertical:</legend>
        <input type="radio" name="radio-choice-v-2" id="radio-choice-v-2a" value="on" checked="checked">
        <label for="radio-choice-v-2a">One</label>
        <input type="radio" name="radio-choice-v-2" id="radio-choice-v-2b" value="off">
        <label for="radio-choice-v-2b">Two</label>
     </fieldset>
     <fieldset data-role="controlgroup" data-type="horizontal">
        <legend>Horizontal:</legend>
        <input type="radio" name="radio-choice-h-2" id="radio-choice-h-2a" value="on" checked="checked">
        <label for="radio-choice-h-2a">One</label>
        <input type="radio" name="radio-choice-h-2" id="radio-choice-h-2b" value="off">
        <label for="radio-choice-h-2b">Two</label>
    </fieldset>
    <fieldset data-role="controlgroup" data-iconpos="right">
        <legend>Vertical, icon right:</legend>
        <input type="radio" name="radio-choice-w-6" id="radio-choice-w-6a" value="on" checked="checked">
        <label for="radio-choice-w-6a">One</label>
        <input type="radio" name="radio-choice-w-6" id="radio-choice-w-6b" value="off">
        <label for="radio-choice-w-6b">Two</label>
    </fieldset>
    </form>
  </div>
  <div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>
Pobierz kod