タイムピッカーと日付ピッカーを1つのテキストに組み合わせる方法はありますか?私はこのhttp://jsfiddle.net/Gajotres/sSqKz/ (これはsir gatoresによるものです)のような答えをいくつか見ましたが、私が望む唯一の日付です開始日時と終了日時を記録したいので、それらを組み合わせていただけないでしょうか。1 つの入力テキストには、1 つの日付ピッカーと 1 つのタイムピッカーがあります
$(document).on('pageinit', '#index', function(){
$( "#datepicker" ).datepicker();
});
<!DOCTYPE html>
<html>
<head>
<title>jQM Complex Demo</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi"/>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-migrate-1.1.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>
<body>
<div data-role="page" id="index">
<div data-theme="a" data-role="header">
<h3>
First Page
</h3>
<a href="#second" class="ui-btn-right">Next</a>
</div>
<div data-role="content">
<p>Date: <input type="text" id="datepicker" /></p>
</div>
<div data-theme="a" data-role="footer" data-position="fixed">
</div>
</div>
</body>
</html>
アップデート:
これを見つけたhttp://jsfiddle.net/bk7fK/1/それは良いのですが、実行できません..なぜこのフィドルを実行できないのか考えています.jsが足りないと思いますが、何がわかりません