jQuery implements the check box batch selection and anti selection method
- 2020-06-15 07:41:42
- OfStack
This article illustrates jQuery's method to realize batch selection and anti-selection of check boxes. Share to everybody for everybody reference. Specific implementation methods are as follows:
function selectAll(){
$('input[type|=checkbox]').attr('checked','checked');
}
function cancelAll(){
$('input[type|=checkbox]').removeAttr('checked');
}
Hopefully, this article has been helpful in your jQuery programming.