jquery datepicker点击日期框后没有往文本框填值
4个回答
展开全部
配置的不对吧~ 给你个我们项目中的配置看看:
$('#datato').datepicker({
dateFormat: 'mm/dd/yy',
yearRange: '2009:2099',
showOtherMonths: true,
showWeeks: true,
clearText:'clear',
closeText:'close',
prevText:'prev',
nextText:'next',
currentText:' ',
minDate:"+1D",
monthNames:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Aep','Oct','Nov','Dec'],
changeFirstDay: false,
buttonImage: '/img/small_icons/cal.png',
showOn: 'both'
});
$('#datato') 是文本框的jquery对象~
$('#datato').datepicker({
dateFormat: 'mm/dd/yy',
yearRange: '2009:2099',
showOtherMonths: true,
showWeeks: true,
clearText:'clear',
closeText:'close',
prevText:'prev',
nextText:'next',
currentText:' ',
minDate:"+1D",
monthNames:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Aep','Oct','Nov','Dec'],
changeFirstDay: false,
buttonImage: '/img/small_icons/cal.png',
showOn: 'both'
});
$('#datato') 是文本框的jquery对象~
2010-12-27
展开全部
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#datepicker").datepicker();
});
</script>
</head>
<body style="font-size:62.5%;">
<input type="text" id="datepicker">
</body>
</html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#datepicker").datepicker();
});
</script>
</head>
<body style="font-size:62.5%;">
<input type="text" id="datepicker">
</body>
</html>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
推荐用My97DatePicker
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
推荐用My97DatePicker
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询