弹出日历日期格式问题 [英] Pop up calender date format issue

查看:103
本文介绍了弹出日历日期格式问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个javascript弹出日历和一个文本框,当用户选择日期时,它必须以用户为其计算机设置的格式坐在文本框中,我该如何实现它? />


我尝试过:



是ASP.net的新手,不能得到了很多,一些人建议添加插件

i've a javascript pop up calender and a text box, when ever user selects a date, it has to sit on the text box in the format which user has set for his computer, how can i achieve it?

What I have tried:

am new to ASP.net, couldnt get much hold on it, some people suggested to add plugins

推荐答案

你可以轻松地使用jQuery。例如:



You could easily do it with jQuery. For example:


function (){


#textbox1)。datepicker();
});
("#textbox1").datepicker(); });





这里有一个快速的完整示例:







And here's a quick full example:


<html>
<head>
 <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
 <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>

<script>


这篇关于弹出日历日期格式问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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