日期:2014-05-16 浏览次数:20343 次
function selectAll(checked, className) {
if(checked) {
$( "." + className ).attr("checked",true);
} else {
$( "." + className ).attr("checked",false);
}
}
<input class="checkbox c<php>echo $temp;</php>" type="checkbox" id="like{$value.areaid}" name="like" onclick="selectAll(this.checked,'<php>echo 'c'.$temp;</php>')" />{$value.areaname}