// 全选功能实现
$(document).ready(function(){
$("#itemAll").click(
function(){
if(this.checked){
$("input[name='ids']").attr('checked', true)
}else{
$("input[name='ids']").attr('checked', false)
}
}
);
});
<input name="itemAll" id="itemAll" type="checkbox" class="by"/>
<s:iterator value="blackLists" id="list" status="l">
<tr <s:if test="#l.odd">class="tb1"</s:if> <s:else> class="tb2" </s:else> width="100%">
<td align="center" height="28">
<input name="ids" type="checkbox" value="<s:property value='#list.id'/>" />
</td>
</tr>
</s:iterator>