0

日付入力フィールドの横にカレンダーを配置するにはどうすればよいですか? phpでありがとう。

 <div class="control-group">
     <label class="control-label">Date:</label>
     <div class="controls">
        <input required name="receiving_date" type="date" id="receiving_date"
               class="input-xlarge" min="<?php echo date('Y-m-d');?>" />
     </div>
</div>
4

1 に答える 1

0

クリック可能になり、必要な日付ピッカープラグインを開く画像が必要です。例えば:

<div class="control-group">
 <label class="control-label">Date:</label>
 <div class="controls">
    <input required name="receiving_date" type="date" id="receiving_date"
           class="input-xlarge" min="<?php echo date('Y-m-d');?>" />
<a href="javascript:showCalendar('date')"><img src="date.gif" width="19" height="17" border="0"></a>
 </div>
</div>

JavaScript で showCalendar 関数を呼び出します。このページの詳細な例:

http://www.yxscripts.com/cal_core_lite/cal_list_lite.html

お役に立てれば。

于 2013-08-08T10:22:56.640 に答える