JQuery Selectors

 

jQuery selectors allow you to select and manipulate HTML element(s).

 
 
 
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("p:visible").css("background-color", "lightblue"); }); </script> </head> <body> <h1>This is a Dummy Text</h1> <p style="display: none">(1) APPWRK IT Solutions is a complete Web Solutions Company.</p> <p>(2) APPWRK IT Solutions is a complete Web Solutions Company.</p> <p style="display:none">(3) APPWRK IT Solutions is a complete Web Solutions Company.</p> <p>(4) APPWRK IT Solutions is a complete Web Solutions Company.</p> <p>(5) APPWRK IT Solutions is a complete Web Solutions Company.</p> </body> </html>
Output