JQuery Mobile表單


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
</head>
<body>

<div data-role="page" id="pageone">
  <div data-role="header">
  <h1>jQuery Mobile 表單</h1>
  </div>

<div data-role="content">
<form method="get" action="">

  <div data-role="fieldcontain">
    <label for="name">全名:</label>
    <input type="text" name="text" id="name" value="" placeholder="你的姓名是?">
    </div>
    
    <div data-role="fieldcontain">
    <label for="search">需要查找什麼?</label>
    <input type="search" name="search" id="search" value="" placeholder="搜索內容"/>
  </div>

  <div data-role="fieldcontain">
    <label for="date">今天的日期:</label>
    <input type="date" name="date" id="date" value="">
  </div>
  
  <div data-role="fieldcontain">
    <label for="colors">選擇喜愛的顏色:</label>
    <select id="colors" name="colors">
      <option value="red">紅色</option>
      <option value="green">綠色</option>
      <option value="blue">藍色</option>
    </select>
 
  <div data-role="fieldcontain">
    <label for="switch">切換開關:</label>
    <select name="switch" id="switch" data-role="slider">
      <option value="on">開</option>
      <option value="off">關</option>
    </select>
  </div>
  
   <div data-role="controlgroup">
   <legend>選擇喜愛的電影:</legend>
   <label for="mov1">蜘蛛俠</label>
   <input type="checkbox" name="mov1" id="mov1" />
   <label for="mov2">變形金剛</label>
   <input type="checkbox" name="mov2" id="mov2" />
   <label for="mov3">碟中諜</label>
   <input type="checkbox" name="mov3" id="mov3" />
   </div>
   </div>
  
</form>
</div>
</div>

</body>
</html>


發佈了68 篇原創文章 · 獲贊 20 · 訪問量 37萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章