In the jquery selector based on our implementation of a full selection, anti-selection, all do not select the function!
<script type= "Text/javascript" >
$ (function ()
{
Select All
$ ("#selectAll"). Click (function () {
//attr the non-intrinsic (user-defined) attribute in the HTML recommendation is to use the
//prop used in HTML element intrinsic properties
$ ("Input[name= ' GX ']"). each (function () {//input[name= ' GX '] property filter selector
$ (this). Prop ("checked", true);
})
});
All do not choose
$ ("#selectNotAll"). Click (function () {
$ ("Input[name= ' GX ']"). each (function () {
$ (this). Prop ("checked", false);
})
});
Inverse selection
$ ("#selectRevorse"). Click (Function ()
{
$ ("Input[name= ' GX ']"). each (function ()
{
$ (this). Prop ("Checked",!this["checked"]);
});
})
})
</script>
Implemented with jquery (select all, inverse selection, all-in-all function)