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

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

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