首页 > 其他 > 详细

use magento default datepicker plugin in your project

时间:2014-05-08 13:25:19      阅读:370      评论:0      收藏:0      [点我收藏+]

<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
            <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
            <action method="addItem"><type>js</type><name>calendar/lang/calendar-en.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
            <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
            <block type="core/html_calendar" name="head.calendar" as="calendar" template="catalog/html/js/calendar.phtml"></block>
        </reference>

var valid_date = Calendar.setup({
    inputField : ‘valid_date‘,
    ifFormat : ‘%Y-%m-%d‘,
    button : ‘date_from_trig‘,
    singleClick : true
});

use magento default datepicker plugin in your project,布布扣,bubuko.com

use magento default datepicker plugin in your project

原文:http://www.cnblogs.com/fengliang/p/3713974.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!