$(function() {
var msg = "${msg}";
if(msg!="") alert(msg);;
row.mousemoveBackground("tbl_main");
row.backgroundColor("tbl_main");
var dates = $("#start,#end").datepicker({
changeYear:true,
changeMonth: true,
numberOfMonths: 1,
onSelect: function( selectedDate ) {
var option = this.id == "start" ? "minDate" : "maxDate",
instance = $( this ).data( "datepicker" ),
date = $.datepicker.parseDate(instance.settings.dateFormat
||$.datepicker._defaults.dateFormat,selectedDate,instance.settings);
dates.not(this).datepicker("option",option,date);
}
});
通过这个加载日期插件会在表格下出现阴影,作法是去掉js/date/ui/jquery.ui.datepicker.js中的
this.dpDiv = $('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>');
ui-helper-clearfix 可以解决。