mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 16:31:33 +00:00
16 lines
324 B
JavaScript
16 lines
324 B
JavaScript
function selectAll(){
|
|
var checklist = document.getElementsByName ("selected");
|
|
if(document.getElementById("select_all").checked)
|
|
{
|
|
for(var i=0;i<checklist.length;i++)
|
|
{
|
|
checklist[i].checked = 1;
|
|
}
|
|
}else{
|
|
for(var j=0;j<checklist.length;j++)
|
|
{
|
|
checklist[j].checked = 0;
|
|
}
|
|
}
|
|
}
|