我需要通过可用功能从输入框中获取值,但它什么也没显示,甚至没有错误
$( "#departure_date" ).datepicker({
beforeShowDay:function(date) { available(date); },
numberOfMonths:1,
showWeek: true,
dateFormat: 'dd-mm-yy',
showAnim: "slideDown"
});
function available(date)
{
dmy = date;
var code = $('#flyfrom_code').val();
alert(code);
}