我有这样的:jQuery的:日期选择器,自动点击/选择一个日期
<script>
$(function() {
$("#datepicker").datepicker({
dateFormat : "yy-mm-dd",
onSelect: function(dateText) {
$.post('/admin/deals/booking/',
{ date: dateText }, function(data) {
if(data != '0')
{
$('input[name=book_date]').val(dateText);
$('#results').html(data);
$('.current_text').html(dateText);
$('.book_deal').removeAttr("disabled");
}
});
}
});
$("#button").bind('click', function(){
});
});
</script>
按下#键就应该激活上述#datepicker,像你所点击的日期和所选日期2012时,我想-02-02
这怎么办?