Description

The :checkbox selector, selects all elements of type 'checkbox'.

Being a jQuery extension the :checkbox pseudo selector is not part of any current CSS specification. Therefore :checkbox cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method.

The same results can be achieved with valid CSS using $('[type=checkbox]'), without the hit to performance.

If this selector is not preceded by another selector, the universal selector ("*") is implied and so the whole DOM will be searched. Use another selector as in the example below to narrow the search and improve performance.