Bind a function to an event
$('#foo').bind('click', function() { alert('User clicked on "foo."'); });