我想显示日期选择器弹出时,输入的元素获得焦点:哪些库用于显示日期选择器?
$(document).ready(function(){
$(".datepicker").on('click',function(){
$(this).datepicker({
buttonImageOnly: true,
changeMonth: true,
changeYear: true,
showWeek: true,
firstDay: 1
});
$(this).datepicker('show');
});
});
需要哪些为了js
文件此代码工作?
'jQuery'和'jQuery- UI' http://jqueryui.com/datepicker/ – Satpal 2014-10-10 07:09:55
无论如何,我的代码是否正确? – pheromix 2014-10-10 07:11:50
@pheromix还需要CSS文件,以正确渲染日期选择器 – Abhishek 2014-10-10 07:12:57