This example demonstrates how to achieve the same effect using on() and bind().

This is some text.

Click to set background color using the on() method.


This is some text.

Click to set background color using the bind() method.