All Selector (“*”) in jQuery

It helps to selects all elements.

All Selector (“*”) in jQuery

// To hide all elements , When click a button

$(“button”).click(function(){
     $(“*“).hide();
});