如何在mvc 5中创建datepicker [英] how to create datepicker in mvc 5

查看:59
本文介绍了如何在mvc 5中创建datepicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何在mvc 5中设置datepicker。这里我在包管理控制台中使用 JqueryUiHelper 和我使用的另一种方法 jqueryui(合并)图书馆。这里我使用了很多方法,但没有用,请你帮忙。有人可以帮忙如何创建简单的日期选择器请解释我。

hi to all,
how to set datepicker in mvc 5. Here i using JqueryUiHelper in package manage console and another method i used jqueryui (combined) library.Here i using many methods but no use can u help me please.Can anybody help how to create simple Date Picker Explain me please.

推荐答案

你看过这些文件吗?



http://jqueryui.com/datepicker/ [ ^ ]



点击查看源代码,你会看到一个例子。
Have you seen the documentation?

http://jqueryui.com/datepicker/[^]

Click on view source and you will see an example.


你好,



确保你已添加HTML中对这些文件的引用



Hi,

Make sure that you have added a reference to these files in your HTML

<link href="~/Scripts/jquery-ui-1.11.0.custom/jquery-ui.min.css" rel="stylesheet" />
<script src="~/Scripts/jquery-1.10.2.min.js"></script>
<script src="~/Scripts/jquery-ui-1.11.0.custom/jquery-ui.min.js"></script>





Html代码将是,



Html code will be,

<div class="row">
    Date: <input type="text" id="picker">
</div>
<!-- create datepicker whenever you need, i'm creating on document ready-->
<script>


document )。ready( function (){
(document).ready(function () {


这篇关于如何在mvc 5中创建datepicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆