jQuery Selectors: Universal selector *

This entry is part 2 of 33 in the series jQuery Selectors

We first look at the universal selector * where it selects all HTML elements.

The <h4>, <p> and <a>  were all selected using *.

<!DOCTYPE html>
    <script src='//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'></script>
        $(function () {
<p>Southernmost city in the world.</p>
<a href='http://en.wikipedia.org/wiki/Ushuaia'>Visit us here.</a>

Series Navigation<< jQuery Selectors: Introduction
jQuery Selectors: Selecting elements based on tags >>

Leave a comment

Leave a Reply