Home >>jQuery Tutorial >jQuery * Selector

jQuery * Selector

jQuery Star(*) Selector

jQuery Star(*) selector in jQuery is used to selects all elements in the document, including html, head and body, it selects all child elements within the specified element.

Here is an Example of jQuery * Selector:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
$("*").css("background-color", "pink");
<h1>Welcome to My Phptpoint</h1>
<p class="intro">My name is phptpoint</p>
<p>I live in Noida.</p>
<p>Who is your favourite:</p>
<ul id="choose">


Welcome to My Phptpoint

My name is phptpoint

I live in Noida.

Who is your favourite:

  • Java
  • PHP
  • jQuery