javascript:全选,反选,全不选

function SetChecked(boxname) {
		f=document.form1;
	
		for( i=0 ; i<f.elements.length i++)="" if="" (f.elements[i].name="=boxname)" f.elements[i].checked="true;" }="" function="" setunchecked(boxname)="" {="" f="document.form1;" for(="" ;="" i="0"><f.elements.length i++)="" if="" (f.elements[i].name="=boxname)" f.elements[i].checked="false;" }="" function="" inverse(boxname)="" {="" f="document.form1;" for(="" ;="" i="0"><f.elements.length ;="" i++)="" if="" (f.elements[i].name="=boxname)" {="" }else="" if(f.elements[i].checked="=false){" f.elements[i].checked="true;" }="">
 jsp代码

<bean:message key="common.button.selectall"> </bean:message>   <bean:message key="common.button.selectnone"> </bean:message>   <bean:message key="common.button.selectinverse"> </bean:message>

posted @ 2008-07-28 09:57  maventalker  阅读(81)  评论(0编辑  收藏  举报