例子:


function easyControl(){

$("#startDate, #endDate").focus(function(){

$("#search").prop("checked",true);

});

}

用作提醒自己,每次用都忘记怎么写。