Free Template 12 ฟอร์มวันที่และเวลา Bootstrap + HTML 5+ FREE CODE แบบง่ายๆ
การทำงาน
code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <title>form date and time by devbanban.com</title> </head> <body> <div class="container"> <div class="row"> <div class="col-md-12"> <h2> Form Date & Time by devbanban.com </h2> <form action="http://devbanban.com/" method="POST" name="add" class="form-horizontal" id="add"> <div class="form-group"> <div class="col-sm-2" align="right"> ว/ด/ป </div> <div class="col-sm-2" align="left"> <input name="dates " type="date" required class="form-control" id="dates" /> </div> </div> <div class="form-group"> <div class="col-sm-2" align="right"> เวลา </div> <div class="col-sm-2" align="left"> <select name="times" id="times" required="required" class="form-control"> <option value="">-เวลา-</option> <option value="8:30">8:30</option> <option value="9:00">9:00</option> <option value="9:30">9:30</option> <option value="10:00">10:00</option> <option value="10:30">10:30</option> <option value="11:00">11:00</option> <option value="11:30">11:30</option> <option value="12:00">12:00</option> <option value="12:30">12:30</option> <option value="13:00">13:00</option> <option value="13:30">13:30</option> <option value="14:00">14:00</option> <option value="14:30">14:30</option> <option value="15:00">15:00</option> <option value="15:30">15:30</option> <option value="16:00">16:00</option> <option value="16:30">16:30</option> <option value="17:00">17:00</option> <option value="17:30">17:30</option> <option value="18:00">18:00</option> <option value="18:30">18:30</option> <option value="19:00">19:00</option> <option value="19:30">19:30</option> <option value="20:00">20:00</option> </select> </div> </div> <div class="form-group"> <div class="col-sm-2"> </div> <div class="col-sm-2"> <button type="submit" class="btn btn-primary" id="btn" style="width: 100%"> เพิ่มข้อมูล </button> </div> </div> </form> </div> </div> </div> </body> </html> |
ลองนำไปประยุกต์ใช้ดูนะครับ ^_^ http://devbanban.com/