六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 169|回复: 0

jQuery Datepicker 选择指定日期【转】

[复制链接]

升级  42.67%

98

主题

98

主题

98

主题

举人

Rank: 3Rank: 3

积分
328
 楼主| 发表于 2013-1-29 08:47:32 | 显示全部楼层 |阅读模式
 
<div style="margin: 0px !important; padding: 0px 1em !important; border: 0px !important; font-size: 13px; vertical-align: baseline !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; background-image: none !important; background-color: white !important; float: none !important; height: auto !important; line-height: 14px; overflow: visible !important; text-align: left; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; white-space: pre !important;" class="line number1 index0 alt2">要求是日期只能选择每个月的1号,其它都不能选择。
 
 
$("#ReadBeginDate").datepicker({minDate:new Date(),beforeShowDay:noWeekendsOrHolidays});  function nationalDays(date) {    var d = date.getDate();    if(d > 1){        return [false];    }    return [true];}function noWeekendsOrHolidays(date) {//var noWeekend = jQuery.datepicker.noWeekends(date);    return nationalDays(date);}
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表