你可以试试(jQuery 和 jQuery ui)
<input id='dp1' />
<div id="div1" style='display:none' > Some info for range date 1</div>
<div id="div2" style='display:none'> Some info for range date 2</div>
$(document).ready(function(){
$("#dp1").datepicker().on('change', function(){
var date = $(this).datepicker('getDate');
// months are based 0
if (date >= new Date(2013,0,1) && date <= new Date(2013,1,28) ){
$("#div2").hide();
$("#div1").show();
}
else if (date >= new Date(2013,2,1) && date <= new Date(2013,3,15)){
$("#div2").show();
$("#div1").hide();
}
});;
});
小提琴