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