<!DOCTYPE html>
<html>
  <head>
    <title>jQuery WeUI</title>
    <% include _head.html %>
  </head>

  <body ontouchstart>


    <header class='demos-header'>
      <h1 class="demos-title">City Picker</h1>
    </header>

    
    <div class="weui_cells weui_cells_form">
      <div class="weui_cell">
        <div class="weui_cell_hd"><label for="name" class="weui_label">发出地</label></div>
        <div class="weui_cell_bd weui_cell_primary">
          <input class="weui_input" id="start" type="text" value="湖北 武汉 武昌区">
        </div>
      </div>
      <div class="weui_cell">
        <div class="weui_cell_hd"><label for="date" class="weui_label">目的地</label></div>
        <div class="weui_cell_bd weui_cell_primary">
          <input class="weui_input" id="end" type="text" value="">
        </div>
      </div>
    </div>

    <h2 class="demos-second-title">只选择城市</h2>
    <div class="weui_cells weui_cells_form">
      <div class="weui_cell">
        <div class="weui_cell_hd"><label for="home-city" class="weui_label">城市</label></div>
        <div class="weui_cell_bd weui_cell_primary">
          <input class="weui_input" id="home-city" type="text" value="">
        </div>
      </div>
    </div>
    <% include _foot.html %>
    <script src="../js/city-picker.js"></script>

    <script>
      $("#start").cityPicker({
        title: "选择出发地"
      });
      $("#end").cityPicker({
        title: "选择目的地"
      });
      $("#home-city").cityPicker({
        title: "选择目的地",
        showDistrict: false
      });
    </script>
  </body>
</html>
