こんにちは。
私の手元のほうで、以下ような html.php と head.php を
同じディレクトリに作成して検証しました。
- html.php
lang
1<!DOCTYPE html>
2<html>
3<head>
4<meta charset="UTF-8">
5<title>Datepickerのテスト</title>
6
7<?php require_once 'head.php';?>
8
9<script type='text/javascript'>
10$(function() {
11$("#day1").datepicker();
12$("#day1").datepicker("option", "showOn", 'both');
13});
14</script>
15
16</head>
17<body>
18<table border="1">
19<tr>
20<td><input type="text" name="day" value="$row[day]" id="day1"></td>
21</tr>
22</table>
23</body>
24</html>
- head.php
lang
1<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
2<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
3<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
4<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script>
これらを、とあるサーバーにFTPして、ブラウザから
http://(とあるサーバー)/html.php
にアクセスしたら、ちゃんと Datepicker が表示されました。
チェックポイントとしては
- html.php の<head>の中でrequire_once なりでhead.phpを読んでいるかどうか
- require_onece は書いてあるけれど、head.phpのパスが間違っているかもしれない。
といったところですが、いかがでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。