<script type="text/javascript" src="/assets/datepicker/jquery-ui-1.9.1.min.js"></script>

<link rel="stylesheet" href="/assets/datepicker/jquery-ui-1.9.1.css">

<script>
$(function() {
var myDate = new Date();

var cm = myDate.getMonth();

var m = 11 - cm;

$( "#ebanx_debit_birth").datepicker({
changeMonth: true,      //仅选择月、年
changeYear: true,

 minDate : "-80Y -"+cm+"M",

maxDate : "-0Y +"+m+"M",  //设置日期选择的范围

yearRange:'c-70:c+70',    //设置滚动条范围
});
});
</script>

 

 

<td><input id="ebanx_credit_birth"  type="text" placeholder="00/00/0000"   class="ddmmyyyy" maxlength="10" autocomplete="off" name="ebanx_credit_birth"></td>

posted on 2014-08-22 13:28  c碰  阅读(303)  评论(0编辑  收藏  举报