focustea

原文地址:
http://www.cnblogs.com/xgpapa/archive/2007/08/07/846985.html

(我的下载地址)
https://files.cnblogs.com/focustea/setday.js

用的时候先在<head></head>插入

<SCRIPT src="Images/setday.js"></SCRIPT>
 然后输入框

<INPUT id="starttime2" onclick="setday(this)" size="12" name="starttime" runat="server">
 当鼠标放在输入框的时候,出现时间控件,选取时间后,JS自动的将时间控件的值赋给starttime2。由于给starttime2加了 runat="server"属性,所以在后台可以取starttime2的Value值。

提供的setday.js默认是UTF-8编码,也就是VS的默认编码,如果你的页面声明是GB等其他编码,请用一下高级保存,转换一下编码。

分类:

技术点:

相关文章:

  • 2021-10-08
  • 2021-12-02
  • 2021-12-04
  • 2021-12-05
  • 2021-12-15
  • 2021-10-08
  • 2021-12-04
  • 2021-12-04
猜你喜欢
  • 2021-12-14
  • 2021-12-04
  • 2021-12-04
  • 2021-12-14
  • 2021-12-14
相关资源
相似解决方案