我的頭一天,因爲這個錯誤的痠痛了。Timepicker jQuery的不工作(有沒有方法curCSS)
The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init(selector, context, rootjQuery);
} has no method 'curCSS'
我的HTML是:目前
<input class="field2" type="text" name="time" placeholder="Time" value ="<?php echo $this- >input->post('time'); ?>" id = "timepicker"/></div>
即時通訊使用的代碼點火器和IM也使用日期選擇器。我認爲包含的js庫存在衝突,但仍然無法調試它。
編輯: 這些所包括的JS
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js_front/jquery-1.8.3.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js_front/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js_front/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js_front/ui/jquery.ui.datepicker.js"></script>
和這裏是timepicker的成輸入變量類型文本
$(function() {
$("#timepicker").timepicker();
}),所述分配;
您需要提供javascript代碼。 – dtbarne
我剛剛修改了我的問題,並添加了所有包含js的文件。 – Orvyl
您還沒有包括jQuery的UI的timepicker-addon.js。 –