Is it possible to use $(this) and universal selector (*) with jQuery?

Yes, it is possible to use $(this) and universal selector (*) with jQuery. Let?s see how to do it. 

You can try to run the following code to learn how to use this and universal selector with jQuery:

Example

   
      jQuery Universal Selector
      
   
      
       
   
   
   

      
         

This is first division of the DOM.

     
     
         

This is second division of the DOM.

     
   
Updated on: 2026-03-11T20:54:41+05:30

208 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements