Have you ever used document.getElementById('id')? You know that one function that gets an Element from the DOM with an ID? In MooTools, there is a shortcut for that very function, and it does something extra.
var myElement = $('id');
The dollar function, or $, is a shortcut to document.getElementById. It also adds methods to the element you call it on. (That doesn't mean much right now, but keep it in mind.)
/* The Dollar Function Syntax */ var myElement = $('title'); myElement.set('html', "Changed!");
The example above sets the html of the element with the ID of title. The Syntax is very simple for this simple function. You can use it directly, or set a variable to it as in the syntax example. In MooTools, you use this often when working with things that you know exist either by design or elements you made.
You can read the MDC for getElementById.
You can also read the Mootorial for $.
Continue to The Dollars Function