首页
IT
登录
6mi
u
盘
搜
搜 索
IT
全选取消复选按钮操作
全选取消复选按钮操作
xiaoxiao
2026-08-30
15
DOCTYPE Html>
<
html
>
<
head
>
<
script
type
=
"text/javascript"
src
=
"http://code.jquery.com/jquery-1.4.4.min.js"
>
</
script
>
<
script
type
=
"text/javascript"
>
function
selectAll
(checkbox)
{
$(
'input[type=checkbox]'
).prop(
'checked'
, $(checkbox).prop(
'checked'
)); }
</
script
>
</
head
>
<
body
>
<
input
type
=
"checkbox"
onclick
=
"selectAll(this);"
/>
全选
<
br
/>
<
input
type
=
"checkbox"
/>
<
br
/>
<
input
type
=
"checkbox"
/>
<
br
/>
<
input
type
=
"checkbox"
/>
<
br
/>
<
input
type
=
"checkbox"
/>
<
br
/>
<
input
type
=
"checkbox"
/>
<
br
/>
<
input
type
=
"checkbox"
/>
<
br
/>
……
</
body
>
</
html
>
转载请注明原文地址: https://ju.6miu.com/read-1311733.html
最新回复
(
0
)