简体   繁体   English

如何使用html代码打开日历格式?

[英]How to open calendar format using html codes?

Can anyone please tell me about how to open calendar pop up format in html? 谁能告诉我如何在html中打开日历弹出格式? So that the user could select date, month and year from the calendar in a form like course registration form. 这样用户就可以从日历中选择日期,月份和年份,例如课程注册表格。

How to design the form in html for selecting the dd-mm-yyyy? 如何在html中设计表单以选择dd-mm-yyyy?

Please give me suggestions. 请给我建议。

Thanks in advance! 提前致谢!

HTML5 offers this facility natively: HTML5 date picker . HTML5原生提供此功能: HTML5日期选择器

If your target browser(s) do not yet support that, you have to implement it yourself in JavaScript, for example, by using one of the available date picker script s. 如果您的目标浏览器还不支持,则必须使用JavaScript自行实现,例如,使用可用的date picker script Use the search engine of your choice. 使用您选择的搜索引擎。

This can be done using jQuery UI Datepicker 这可以使用jQuery UI Datepicker完成

You cannot do it with HTML Only. 您不能仅使用HTML来做到这一点。 Need the aid of Javascript to do it. 需要借助Javascript来做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM