How do I select multiple elements at once in jQuery

In jQuery, you can select multiple elements at once by using a comma-separated list of selectors within the jQuery selector function. This allows you to manipulate multiple elements simultaneously. For example, you might want to select all paragraph tags and all div tags at the same time.
jQuery, selectors, multiple elements, DOM manipulation
<?php echo "<script src='https://code.jquery.com/jquery-3.6.0.min.js'></script>"; echo "<script>"; echo " \$(document).ready(function() {"; echo " \$('p, div').css('color', 'blue');"; // Selects all paragraph and div elements echo " });"; echo "</script>"; ?>

jQuery selectors multiple elements DOM manipulation