我正在尝试设置Jquery UI datepicker
,但它无效。我在这里制作了我的设置演示:https://jsfiddle.net/950g0oku/
输入字段是
<input id="id_dates-0-starts" class="datetime field_required hasDatepicker" type="text" name="dates-0-starts">
和javascript
$(".datetime").datepicker();
答案 0 :(得分:1)
我刚删除了班级hasDatepicker
,现在正在工作:
答案 1 :(得分:1)
为什么使用hasDatepicker
课程?从输入中删除它,它的工作原理。请参阅the Fiddle。
事实上,jQuery-ui也使用这个类名,所以当你使用它时,似乎存在冲突。
答案 2 :(得分:1)
您需要从字段中删除课程 WITH a
AS (
SELECT round AS round
,Sum(non_slsc_qty) AS SC
,Sum(non_slst_qty) AS ST
,Sum(non_slot_qty) AS OTHERS
FROM vhn_issue
WHERE (
DATE BETWEEN '2015-08-01'
AND '2015-08-31'
)
AND dvn_cd = '15'
AND phc_cd = '012'
AND hsc_cd = '05'
GROUP BY round
)
,b
AS (
SELECT round AS round_up
,Sum(non_slsc_qty) AS SC_up
,Sum(non_slst_qty) AS ST_up
,Sum(non_slot_qty) AS OTHERS_up
,
FROM vhn_issue
WHERE (
DATE BETWEEN '2015-04-01'
AND '2015-08-31'
)
AND dvn_cd = '15'
AND phc_cd = '012'
AND hsc_cd = '05'
GROUP BY round
)
SELECT coalesce(b.round_up, 0) round_up
,coalesce(a.sc, 0) sc
,coalesce(a.st, 0) st
,coalesce(a.others, 0) others
,coalesce(b.sc_up, 0) sc_up
,coalesce(b.st_up, 0) st_up
,coalesce(b.others_up, 0) others_up
FROM a
RIGHT JOIN b ON a.round = b.round_up
。
看看你的小提琴updated version(你的更新)。
jQuery使用这个类,似乎如果使用类hasDatepicker
,日历的功能就不会显示任何内容。
希望它可以帮助
答案 3 :(得分:0)
不要使用hasDatepicker
作为班级名称。 jquery datepicker使用此名称进行渲染。请参阅此jsfiddle