:checked Selector in jQuery

It helps to select all elements that are checked or selected.

:checked Selector

// To add background color to checked checkboxes. (Firefox does not support background)

$(document).ready(function(){
    $(“:checked”).wrap(“<span style=’background-color:yellow’ />”);
})