jQuery取消选中带有name属性的复选框

Dol*_*rma 2 html jquery

在HTML页面上,我有一个名为property的复选框.我无法使用name属性取消选中它.

HTML:

<input type="checkbox" value="1" name="show_static_notify">
Run Code Online (Sandbox Code Playgroud)

jQuery:

$("input[name='show_static_notify']:checkbox:not(:checked)");
Run Code Online (Sandbox Code Playgroud)

Tus*_*har 10

使用.prop()

$("input[name='show_static_notify']:checkbox").prop('checked',false);
Run Code Online (Sandbox Code Playgroud)

Fiddle Demo