年月日联动下拉选择JS封装类 Ver 1.0 

  制作时间:2013-3-12
 更新时间:2013-3-12
  作者主页: http://iulog.com

更新时间:2013-3-12

应用说明:页面包含脚本 <script type="text/javascript" src="YMDClass.js" charset="utf-8"></script>

下拉框选择器: <select name="year1"></select> <select name="month1"></select> <select name="day1"></select>

JS实例化,参数选取选择器select的name属性值:<script> new YMDselect('year1','month1','day1',1990,2,10); </script>

实例化示例:

年月联动
  new YMDselect('year1','month1');
  new YMDselect('year1','month1',1990);
  new YMDselect('year1','month1',1990,2);
年月日联动
  new YMDselect('year1','month1','day1');
  new YMDselect('year1','month1','day1',1990);
  new YMDselect('year1','month1','day1',1990,2);
  new YMDselect('year1','month1','day1',1990,2,10);
\*** 程序制作/版权所有:Kevin QQ:251378427 E-Mail:yeminch@qq.com 网址:http://iulog.com ***/

演示及下载:年月日联动下拉选择JS封装类 Ver 1.0

纯JS手工打造,绿色有机无污染

 

点击查看原图