struts2 checkboxlist

http://vsp.iteye.com/blog/1250163 

回显示时候 id 为LOng   action 也必须为Long

<s:checkboxlist id="user_type_list" name="user_type_list" list="#{'0':'用户1','1':'用户2','2':'用户3'}"  value="%{ttsList}">

</s:checkboxlist>  

ttsList 可以卸载bean里面

$(':checkbox[name=child]').each(function(){
if($(this).attr('checked')){
$(this).closest('tr').remove();  删除checkbox所在的行
num++;
}
})

$(this).removeAttr('checked');//如果这里的this表示的是当前行,那么:$(this).find(':checkbox').removeAttr('checked')
第二个问题:
先移除,再复制,再追加:. $(this).remove().clone().appendTo("#t_one")

猜你喜欢

转载自yelwen000.iteye.com/blog/1700189