jquery 多控件添加相同事件
例子:
function easyControl(){
$("#startDate, #endDate").focus(function(){
$("#search").prop("checked",true);
});
}
用作提醒自己,每次用都忘记怎么写。
例子:
function easyControl(){
$("#startDate, #endDate").focus(function(){
$("#search").prop("checked",true);
});
}
用作提醒自己,每次用都忘记怎么写。