0
如何选择单点击所有复选框,而每一个复选框已使用JavaScript唯一的名称?请提供代码。
</div><!-- /.box-header -->
<div class="box-body">
<form name="permissionfrm" method="post" id="permissionfrm">
<input type="hidden" name="permission" id="permission" value="assignpermission" />
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>Give All Permissions
</th><td><input type="checkbox" name="addadmin" id="addadmin" value="Check All" onClick="this.value=check(this.form.list)"/></td>
</tr>
<tr>
<th>Add</th>
<th>Edit</th>
<th>View</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
Java与JavaScript无关! – Dragondraikk