jquery/jquery-ui

Datepicker show/hide function not working

オープン

#2,360 opened on 2025/07/13

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (5,390 件のフォーク)batch import
Comp: Datepickerhelp wanted

Repository metrics

Stars
 (11,194 個のスター)
PR merge metrics
 (PR metrics pending)

説明

When create a datepicker for a div (non-input) elementm the show/hide functions don't work.

<div id="datepicker"></div>

<link rel="stylesheet" href="https://code.jquery.com/ui/1.14.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<script src="https://code.jquery.com/ui/1.14.1/jquery-ui.js"></script>
<script>
$("#datepicker").datepicker();
$("#datepicker").datepicker("hide");
</script>

コントリビューターガイド