gpt4 book ai didi

jquery - 两个日期选择器未显示在单个 html 页面中

转载 作者:行者123 更新时间:2023-11-28 10:11:00 26 4
gpt4 key购买 nike

我想在一个 html 页面中保留两个日期选择器,但在运行时它只显示一个日期选择器。

我完成的编码是

 </head>
<body>
Issue Date(dd-mm-yyyy)<span class="star" style="color:red;">*</span>
<!-- <input type="text" id="datepicker" />-->

<script type="text/javascript"src="http://www.snaphost.com/jquery/Calendar.aspx"></script>

&nbsp;&nbsp;&nbsp;&nbsp;

Expiry Date(dd-mm-yyyy)<span class="star" style="color:red;">*</span>

<script type="text/javascript"src="http://www.snaphost.com/jquery/Calendar.aspx"></script>

</body>
</html>

我也检查过这个http://jqueryui.com/datepicker/

任何人都可以提出一些如何解决这个问题的建议。我正在使用 Dreamweaver 8。

最佳答案

使用 jQuery 用户界面

<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
</head>
<body>
Issue Date(dd-mm-yyyy)<span class="star" style="color:red;">*</span>
<input type="text" id="datepicker" />
&nbsp;&nbsp;&nbsp;&nbsp;
Expiry Date(dd-mm-yyyy)<span class="star" style="color:red;">*</span>
<input type="text" id="datepicker2" />
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script type='text/javascript'>
$("#datepicker").datepicker();
$("#datepicker2").datepicker();
</script>
</body>
</html>

关于jquery - 两个日期选择器未显示在单个 html 页面中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24380365/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com