jquery/jquery-ui

Datepicker show/hide function not working

Open

#2,360 opened on 2025年7月13日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)JavaScript (11,194 stars) (5,390 forks)batch import
Comp: Datepickerhelp wanted

説明

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>

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

Datepicker show/hide function not working · jquery/jquery-ui#2360 | Good First Issue