Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ウェブサイトに日付ピッカーがありますが、時間に基づいて日数を無効にしたいのです。私は2つのことを達成したい:
jqueryで可能ですか?
時刻に応じてminDateを変更してみませんか?
var hour = new Date().getHours(); $("element").datepicker({ minDate: hour >= 14 ? 2 : 1});