Use jQuery events.