LoginSignup
0
0

More than 3 years have passed since last update.

JavaScript jquery.datetimepicker.js

Posted at

datetimepicer の簡易サンプル、オプションはてきとうに設定

download (zip)

html

<!DOCTYPE html>
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>

<link rel="stylesheet" type="text/css" href="./jquery.datetimepicker.css"/>
<script src="./jquery.js"></script>
<script src="./build/jquery.datetimepicker.full.js"></script>
<script>
$(function(){
$('#datetimepicker1').datetimepicker({
    timepickerScrollbar:true,
    scrollTime:true,
    scrollInput:true,
    scrollMonth:true
});
$('#datetimepicker2').datetimepicker({datepicker:false});
$('#datetimepicker3').datetimepicker({timepicker:false});
});
</script>
</head>

<body>
    <h3>DateTimePicker</h3>
    <input type="text" id="datetimepicker1"/><br><br>
    <h3>TimePicker</h3>
    <input type="text" id="datetimepicker2"/><br><br>
    <h3>DatePicker</h3>
    <input type="text" id="datetimepicker3"/><br><br>
</body>
</html>

  • scrollTime のオプションきかない...
    build/jquery.datetimepicker.full.js 2087行目に以下を追加すれば...
            if (!options.scrollTime) {
                timeboxparent.off('mousewheel');
            }
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0