我需要在 asp.net 中创建一个日期选择器。 在网上找到了一些,但希望找到一些不同的东西。
谢谢
最佳答案
我建议你使用 jQueryUI datepicker 插件:
http://jqueryui.com/demos/datepicker/
这是 jQuery UI 网站的示例:
<script type="text/javascript">
$(function() {
$("#datepicker").datepicker();
});
</script>
<div class="demo">
<p>Date: <input id="datepicker" type="text"></p>
</div><!-- End demo -->
<div style="display: none;" class="demo-description">
<p>The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>
</div><!-- End demo-description -->
关于c# - 需要在 Asp.net 中创建日期选择器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2160272/